安装 tensorflow==1.15.2 遇见的问题

 一、直接安装

命令:pip install tensorflow==1.15.2

二、换 阿里云 镜像源

命令:pip install -i http://mirrors.aliyun.com/pypi/simple tensorflow==1.15.2

三、换 豆瓣 镜像源

命令:pip install http://pypi.douban.com/simple tensorflow==1.15.2
错误:

  ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-4y1t7wu2\simple (downloaded from C:\Users\Administrator\AppData\Local\Temp\pip-req-build-ks2gek_b, content-type: text/html; charset=utf-8); cannot detect archive forma
t
  ERROR: Cannot determine archive format of C:\Users\Administrator\AppData\Local\Temp\pip-req-build-ks2gek_b

 

四、换 中国科学技术大学 镜像源

命令:pip install http://pypi.mirrors.ustc.edu.cn/simple/ tensorflow==1.15.2

  ERROR: Cannot unpack file C:\Users\Administrator\AppData\Local\Temp\pip-unpack-s6qfhuow\simple.htm (downloaded from C:\Users\Administrator\AppData\Local\Temp\pip-req-build-o8_q5nl6, content-type: text/html); cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\Administrator\AppData\Local\Temp\pip-req-build-o8_q5nl6

 解决:使用如下命令即可解决

pip install tensorflow==1.15.2 -i https://pypi.douban.com/simple --trust -host=pypi.douban.com

成功解决:

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值