尽管使用sudo
,pip install
命令有时会产生类似于以下内容的错误:
... Installing collected packages: setuptools, protobuf, wheel, numpy, tensorflow Found existing installation: setuptools 1.1.6 Uninstalling setuptools-1.1.6: Exception: … [Errno 1] Operation not permitted: '/tmp/pip-a1DXRT-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'
答案 0 :(得分:0)
尝试使用--ignore-installed
选项进行安装:
sudo pip install --ignore-installed tensorflow
它应该有用。