tensorflow2.0.0下载超时\下载报错\

报错

 ERROR: keras 2.2.0 has requirement keras-applications==1.0.2, but you'll have keras-applications 1.0.8 which is incompatible.
ERROR: keras 2.2.0 has requirement keras-preprocessing==1.0.1, but you'll have keras-preprocessing 1.1.2 which is incompatible.
Installing collected packages: wrapt, keras-preprocessing, keras-applications, tensorflow
  Attempting uninstall: wrapt
    Found existing installation: wrapt 1.10.11
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

①keras问题

已存在keras2.2.0版本,但是与我下载的tensorflow版本不兼容,所以要降级。

pip uninstall keras

防止超时,使用镜像下载:pip install keras==2.1.6 -i https://pypi.tuna.tsinghua.edu.cn/simple/(不下载也行,tensorflow里面有)

 

②wrapt问题

建议直接使用,又防止了超时又防止下载错误:

pip install wrapt==1.12.1 --ignore-installed -i https://mirrors.aliyun.com/pypi/simple/

 

最后再安装tensorflow

pip install tensorflow==2.0.0 -i https://mirrors.aliyun.com/pypi/simple/

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值