TensorFlow安装错误:不允许操作... / _markerlib

问题描述 投票:7回答:1

尽管使用sudopip 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'
tensorflow
1个回答
0
投票

尝试使用--ignore-installed选项安装:

sudo pip install --ignore-installed tensorflow

它应该工作。

© www.soinside.com 2019 - 2024. All rights reserved.