首先说明,我在安装tensorflow过程中出现各种各样的问题了,也使用了各种各样的方法,花了很多很多时间,然后在今天已经几近绝望的时候安装成功了!!成功了!!实在太激动了,所以上来写下人生中第一篇真正意义上的技术博客,希望能对大家有所帮助~~~
环境:windows10
软件:anaconda+python3.5+tensorflow
问题:1. Could not find a version that satisfies the requirement tensorflow(from versions: )No matching distribution found for tensorflow
2.PermissionError: [WinError 5] : 'c:\\program files\\anaconda3\\lib\\site-packages\\google\\protobuf\\__init__.py'
3.ImportError: Nomodule named '_pywrap_tensorflow_internal'
解决问题重要链接:
1.(各种问题列表)https://www.tensorflow.org/install/install_sources#common_installation_problems
2.(最终解决办法)https://stackoverflow.com/questions/44080677/no-module-named-pywrap-tensorflow-internal
解决办法尝试:
(一)使用anaconda 安装python3.5,因为tensorflow目前只与python3.5的兼容,不要安装2.7版本和3.6版本的,所以要找到python3.5版本的anaconda
anaconda的下载安装,及anaconda+python3.5+tensorflow的安装可参考以下链接:
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
可以看到安装了anaconda后python和tensorflow(cpu版本)只用几个指令就可以安装了,当然如果顺利安装了,那恭喜你,不用往下看了,但如果遇到了问题,下面或许可供参考。
(二) Could not find a version that satisfies the requirement tensorflow(from versions: )No matching distribution found for tensorflow
这个问题就是需要安装tensorflow啦,下面是很好的安装教程链接哦:
https://blog.csdn.net/qq_16257817/article/details/75001854
(三)ImportError: Nomodule named '_pywrap_tensorflow_internal'
导入tensorflow时错误,可能tensorflow没有按照成功,需要在cmd中执行以下指令重新安装:
pip install --upgrade https://storage.googleap