国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

解決安裝tensorflow遇到無法卸載numpy 1.8.0rc1的問題

2020-02-15 21:50:41
字體:
來源:轉載
供稿:網友

最近在關注 Deep Learning,就在自己的mac上安裝google的開源框架Tensorflow

用 sudo pip install -U tensorflow

安裝的時候總是遇到下面的問題:

sudo pip install -U tensorflowPassword:The directory '/Users/jason/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/Users/jason/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.Collecting tensorflow Downloading tensorflow-1.0.0-cp27-cp27m-macosx_10_11_x86_64.whl (39.3MB)100% |████████████████████████████████| 39.4MB 32kB/s Collecting numpy>=1.11.0 (from tensorflow) Downloading numpy-1.12.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.4MB)100% |████████████████████████████████| 4.4MB 195kB/s Requirement already up-to-date: six>=1.10.0 in /Library/Python/2.7/site-packages/six-1.10.0-py2.7.egg (from tensorflow)Requirement already up-to-date: mock>=2.0.0 in /Library/Python/2.7/site-packages (from tensorflow)Requirement already up-to-date: wheel in /Library/Python/2.7/site-packages (from tensorflow)Requirement already up-to-date: protobuf>=3.1.0 in /Library/Python/2.7/site-packages (from tensorflow)Requirement already up-to-date: funcsigs>=1; python_version < "3.3" in /Library/Python/2.7/site-packages (from mock>=2.0.0->tensorflow)Requirement already up-to-date: pbr>=0.11 in /Library/Python/2.7/site-packages (from mock>=2.0.0->tensorflow)Collecting setuptools (from protobuf>=3.1.0->tensorflow) Downloading setuptools-34.3.0-py2.py3-none-any.whl (389kB)100% |████████████████████████████████| 399kB 1.1MB/s Requirement already up-to-date: packaging>=16.8 in /Library/Python/2.7/site-packages (from setuptools->protobuf>=3.1.0->tensorflow)Requirement already up-to-date: appdirs>=1.4.0 in /Library/Python/2.7/site-packages (from setuptools->protobuf>=3.1.0->tensorflow)Collecting pyparsing (from packaging>=16.8->setuptools->protobuf>=3.1.0->tensorflow) Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)100% |████████████████████████████████| 61kB 2.5MB/s Installing collected packages: numpy, tensorflow, setuptools, pyparsing Found existing installation: numpy 1.8.0rc1DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.Uninstalling numpy-1.8.0rc1: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 mainstatus = 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 runprefix=options.prefix_path, File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in installrequirement.uninstall(auto_confirm=True) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstallpaths_to_remove.remove(auto_confirm) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in removerenames(path, new_path) File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renamesshutil.move(old, new) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in movecopy2(src, real_dst) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2copystat(src, dst) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystatos.chflags(dst, st.st_flags)OSError: [Errno 1] Operation not permitted: '/tmp/pip-aGEdP5-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'            
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 麦盖提县| 上高县| 固镇县| 新密市| 福鼎市| 喜德县| 林周县| 武乡县| 新绛县| 嘉定区| 抚远县| 岗巴县| 灵璧县| 麟游县| 邓州市| 酉阳| 许昌县| 通渭县| 永春县| 普兰县| 且末县| 阿拉善盟| 宁陵县| 八宿县| 安新县| 卓资县| 镇赉县| 车险| 镇坪县| 桂阳县| 高要市| 赤城县| 沧州市| 拉萨市| 宁阳县| 保定市| 托克托县| 潮州市| 大关县| 申扎县| 枣阳市|