2017-03-05 150 views
0

我試圖用的virtualenv 安裝tensorflow我已經成功地通過了前5個步驟,但在第5Tensorflow安裝錯誤

pip install --upgrade tensorflow 

我得到一個錯誤

Found existing installation: numpy 1.8.0rc1 
DEPRECATION: 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: 
OSError: [Errno 1] Operation not permitted: '/tmp/pip-Z5MKQS-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info' 

回答

0

你可能會去全球安裝嘗試添加sudo

sudo pip install --upgrade tensorflow 

否則只是升級numpy se與sudo分開,然後你可以嘗試在本地安裝tensorflow。

0

我不知道爲什麼你有這個錯誤。 但你可以嘗試先安裝pip3,然後嘗試使用pip3安裝爲 pip3安裝 - 升級tensorflow 這將幫助你。