解决ImportError: No module named tensorflow的问题

环境:

python3.5.3+pycharm

问题描述:

ImportError: No module named tensorflow

解决方法:

tensorflow安装不正确,需卸载重装

pip uninstall tensorflow

最好把附带的一些库也卸了,tensorboard、tensorflow- estimator之类的库

同样用pip uninstall xx的代码

注意一个问题:

安装的tensorflow版本要与python版本匹配,这边参考:

https://blog.csdn.net/wanzhen4330/article/details/81660277

注意别装到tensorflow2.0.0版本去了,不然会报错:

could not find a version that satisfies the requrement

最后装了tensorflow1.5.0,编译通过

猜你喜欢

转载自www.cnblogs.com/Kobaayyy/p/11870067.html