1.警告
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
警告:
pip版本太低,需要升級
方法:
不要採用更新pip的語句,很容易報錯!
使用下面命令,很快搞定!:
easy_install pip
2.報錯
ImportError: Something is wrong with the numpy installation. While importing we
detected an older version of numpy in ['G:\\Program\\Anaconda3\\lib\\site-packag
es\\numpy']. One method of fixing this is to repeatedly uninstall numpy until no
ne is found, then reinstall this version.
原因:
numpy重複安裝,需要卸載。網上的教程使用更新numpy的方法,不奏效!
方法:
使用卸載命令,重複卸載:
pip uninstall numpy
重複以上命令多次,直到找不到numpy,然後重裝numpy
我的卸載了兩次,出現:
Successfully uninstalled numpy-1.15.1
Successfully uninstalled numpy-1.16.2
直到出現:
Skipping numpy as it is not installed.
然後接着重裝numpy
pip install numpy
然後打開python,輸入: import tensorflow
.沒有報錯了。