安裝tensorfolw 2.1.0
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -U tensorflow
問題1:Cannot uninstall 'wrapt'
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解決:
輸入
pip install -U --ignore-installed wrapt enum34 simplejson netaddr
問題2:EnvironmentError
安裝過程中出現:Could not install packages due to an EnvironmentError: [WinError 5] ...
解決:
直接在install後面加上
--user
就可以了
問題3:imort tensorflow失敗
照正常方法裝好tensorflow之後,import一直不成功
ImportError: DLL load failed: 找不到指定的模塊。
tensorflow2.1.0需要組件,下載安裝Visual C++
安裝後重啓電腦即可