windows下安装tensorflow过程中解决办法集合+ImportError: Nomodule named '_pywrap_tensorflow_internal'

首先说明,我在安装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

  • 7
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值