win10 Tensorflow(CPU版) ERROR: Exception: Traceback (most recent call last)

win10 Tensorflow(CPU版) ERROR: Exception: Traceback (most recent call last)

tensorflow安装成功后,去激活一下,紧接着输入:“activate tensorflow”,切换了,就代表安装成功了。
然后要安装CPU/GPU版本。
首先要查看自己的电脑显卡是A卡还是D卡。AMD显卡只能安装cpu版本,不能安装gpu版本。萌新用CPU版本就行了,安装也较简单。以下是查看步骤

电脑的系统属性
开头第一个字母就是A/D卡
设备管理器
我安装的是CPU版本,那么在命令下输入:

  1. pip install tensorflow
  2. pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
  3. pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -i
    https://pypi.tuna.tsinghua.edu.cn/simple/https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl

发现都是原来的错误
在这里插入图片描述
我猜测是网速的问题及网址更换了的问题,找了好多命令,用了豆瓣的成功了。

pip install tensorflow -i https://pypi.douban.com/simple
python -m pip install --upgrade pip -i https://pypi.douban.com/simple

在这里插入图片描述![在这里插入图片描述](https://img-blog.csdnimg.cn/20200303163607173.png
在这里插入图片描述
由于版本的不断更替,导致网上的教程仅仅适用于当时的TensorFlow版本,要降低版本

pip install tensorflow==1.4
import tensorflow

后又出现了新的问题
在这里插入图片描述
解决办法
对h5py进行更新升级

pip install h5py==2.8.0rc1

然后就成功啦~
在这里插入图片描述

  • 10
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值