安装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++

安装后重启电脑即可

 

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐