安装Tensorflow(windows版本)

安装Tensorflow

前面基本参考的都是这个:https://www.cnblogs.com/lvsling/p/8672404.html

到 pip 安装的时候就不行了  

换这个:pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl

 也报错

把python的源换成清华源
一般情况下PIP出现ReadTimeoutError都是因为被GFW给墙了,所以一般遇到这种问题,我们可以选择国内的镜像来解决问题。

在Windows下:

C:\Users\Administrator\下新建pip文件夹,在创建pip.ini文件,拷贝下面代码进去,保存。

 [global]
 index-url = https://pypi.tuna.tsinghua.edu.cn/simple

成功

检测:

成功

将Tensorflow环境嵌入到编辑器中

已经测试过了  在软件里又不行了

ImportError: No module named 'tensorflow'

解决方法出自:https://blog.csdn.net/zinkin14/article/details/79235314

之后又出现了新的错 可能包下重了:

mportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/ubuntu/.local/lib/python3.5/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version
解决方法:翻译了照做即可,“ImportError:numpy安装有问题。 导入时我们在['/home/ubuntu/.local/lib/python3.5/site-packages/numpy']中检测到了旧版本的numpy。 解决此问题的一种方法是重复卸载numpy,直到找不到,然后重新安装此版本”,pip3 uninstall 多次直到提示No modules 再安装。

出自:https://www.jianshu.com/p/addc1d108df9

 

               解决:多次执行 pip uninstall numpy 直到卸载干净


                然后再次执行 pip install numpy

这个比较详细一些:https://blog.csdn.net/zimiao552147572/article/details/88854746

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值