簡體   English   中英

在MacOS Sierra上安裝Tensorflow的問題

[英]Issues Installing Tensorflow on MacOS Sierra

我正在遵循Tensorflow.org關於如何安裝所有組件的指南,我感覺我正在四處逛逛以嘗試完成安裝。 問題是我正在運行sudo easy_install pip ,並且運行良好,並告訴我pip 9.0.1已經是easy-install.pth中的活動版本,因此一切正常。 指示中的下一步是使用pip install --upgrade virtualenv ; 但是,當我運行它時,我得到了這么長的錯誤並得出了以下錯誤:

Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-
py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-
py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-
py2.7.egg/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-9.0.1-
py2.7.egg/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip-9.0.1-
py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", 
line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", 
line 323, in clobber
shutil.copyfile(srcfile, destfile)  File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil
.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Library/Python/2.7/site-
packages/virtualenv.py
`

請告知我下一步該怎么做。 我不太確定該怎么做。

這里的問題是您的用戶沒有必要的權限才能在該目錄中安裝軟件包。

因此,一個簡單的解決方案是使用sudo即: sudo pip install --upgrade virtualenv

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM