1、OSError: [Errno 13] Permission denied:
遇到这个问题的原因是因为权限不足,所以在你的命令前面加上sudo就好
2、 解决 mac OSX pip OSError: [Errno 1] Operation not permitted
执行如下命令
pip install--upgrade /Users/tiancb/Downloads/tensorflow-0.11.0rc1-py2-none-any.whl
/Users/tiancb/Downloads/tensorflow-0.11.0rc1-py2-none-any.whl
这个是自己下载的whl文件
直接执行
pip installhttps://storage.googleapis.com/tensorflow/mac/tensorflow-0.11.0rc1-py2-none-any.whl
需要翻墙 请自行选择安装命令
执行后界面见下图

报错内容如下
Installing collected packages:six, setuptools, protobuf, numpy, funcsigs, pbr, mock, wheel, tensorflow Found existing installation:six1.4.1DEPRECATION: Uninstallingadistutils installed project (six) has been deprecatedandwill be removedinafutureversion. This is duetothefact that uninstallingadistutils project will only partially uninstalltheproject. Uninstallingsix-1.4.1:Exception:Traceback (most recent calllast): File"/Library/Python/2.7/site-packages/pip/basecommand.py",line215,inmain status = self.run(options, args) File"/Library/Python/2.7/site-packages/pip/commands/install.py",line342,inrun prefix=options.prefix_path, File"/Library/Python/2.7/site-packages/pip/req/req_set.py",line778,ininstall requirement.uninstall(auto_confirm=True) File"/Library/Python/2.7/site-packages/pip/req/req_install.py",line754,inuninstall paths_to_remove.remove(auto_confirm) File"/Library/Python/2.7/site-packages/pip/req/req_uninstall.py",line115,inremove renames(path, new_path) File"/Library/Python/2.7/site-packages/pip/utils/__init__.py",line267,inrenames shutil.move(old,new) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",line302,inmove copy2(src, real_dst) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",line131,incopy2 copystat(src, dst) File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",line103,incopystat os.chflags(dst, st.st_flags)OSError: [Errno1] Operationnotpermitted:'/var/folders/7g/wzz4kvyj6lg3zp5ksf7pc86w0000gn/T/pip-Edj4pA-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
遇到这个问题的时候把上面的命令换成
sudo pip install /Users/tiancb/Downloads/tensorflow-0.11.0rc1-py2-none-any.whl --upgrade --ignore-installed six

参考资料
文件下载
网友评论