2017-02-02 19 views
7

Mặc dù sử dụng sudo, lệnh pip install đôi khi tạo ra một lỗi tương tự như sau:TensorFlow lỗi cài đặt: Hoạt động không được phép .../_ markerlib

 
... 
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' 

Trả lời

0

Cố gắng cài đặt sử dụng --ignore-installed tùy chọn:

sudo pip install --ignore-installed tensorflow 

Nó sẽ hoạt động.

Các vấn đề liên quan