环境:
win10 64位
情境:eclipse运行python文件
错误:ModuleNotFoundError: No module named ‘tensorflow‘
分析:没有安装tensorflow包
解决方法:pip install tensorflow
默认路径下载速度很慢,几k每秒,中间还暂停,下载几次都失败了,
![](https://img-blog.csdnimg.cn/img_convert/1cef7caaec0ddce07ec8b852b7cd9e77.png)
考虑换源,修改成了中国科学技术源,下载速度上升到几M每秒
![](https://img-blog.csdnimg.cn/img_convert/063e7835a40e5aaa3d19bf8ac43e034f.png)
安装过程中报错:
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.
![](https://img-blog.csdnimg.cn/img_convert/35b3a81cb0fbe83241623a8ffd6a77c5.png)
解决方案:
pip install wrapt --upgrade --ignore-installed
pip install tensorflow
安装成功:
![](https://img-blog.csdnimg.cn/img_convert/b549c9f5bc1f3f06cb4989df4696e2c9.png)
感谢:
ERROR: Cannot uninstall 'wrapt'. during upgrade · Issue #30191 · tensorflow/tensorflow · GitHub