TensorFlow2.1.0、1.15.0等版本使用镜像源安装

本文详细介绍了如何使用pip命令正确安装TensorFlow 2.1版本,包括针对CPU和GPU的不同安装方式,以及在安装过程中可能遇到的问题和解决策略,如版本冲突和镜像源的选择。
部署运行你感兴趣的模型镜像

 

pip install tensorflow-cpu==2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

注意:pip install tensorflow==2.1.0和pip install tensorflow-CPU==2.1.0区别~

TensorFlow2.1版本默认安装CPU和GPU,这样程序运行的时候容易出错,所以最好标明CPU或者GPU

pip install tensorflow==1.15.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

如果安装出错,注意提示的版本,修改版本号就可以继续安装了

如果不行,换下面这个https://pypi.douban.com/simple/

# 对应python版本3.6

 

 

 

您可能感兴趣的与本文相关的镜像

TensorFlow-v2.9

TensorFlow-v2.9

TensorFlow

TensorFlow 是由Google Brain 团队开发的开源机器学习框架,广泛应用于深度学习研究和生产环境。 它提供了一个灵活的平台,用于构建和训练各种机器学习模型

warning libmamba Problem type not implemented SOLVER_RULE_STRICT_REPO_PRIORITY failed LibMambaUnsatisfiableError: Encountered problems while solving: - package tensorflow-gpu-1.13.1-h0d30ee6_0 requires tensorflow 1.13.1, but none of the providers can d Could not solve for environment specs The following packages are incompatible ├─ pin-1 is installable and it requires │ └─ python 3.9.* , which can be installed; └─ tensorflow-gpu is not installable because there are no viable options ├─ tensorflow-gpu 1.10.0 would require │ └─ tensorflow 1.10.0 but there are no viable options │ ├─ tensorflow [1.10.0|1.13.1|1.14.0|1.9.0] would require │ │ ├─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reporte; │ │ └─ tensorflow-base [1.13.1 py36_4|1.13.1 py36_5|1.13.1 py36_6|1.13.1 py36_8|1.14.0 py36h9f0s │ │ └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously repo; │ ├─ tensorflow [1.10.0|1.9.0] would require │ │ └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reporte; │ └─ tensorflow 1.10.0 conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.11.0 would require │ └─ tensorflow 1.11.0 , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.12.0 would require │ └─ tensorflow 1.12.0 , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.13.1 would require │ └─ tensorflow 1.13.1 but there are no viable options │ ├─ tensorflow [1.10.0|1.13.1|1.14.0|1.9.0], which cannot be installed (as previously explained; │ ├─ tensorflow [1.13.1|1.14.0] would require │ │ ├─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reporte; │ │ └─ tensorflow-base [1.13.1 py37_7|1.14.0 py37hc8dfbb8_0], which requires │ │ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously repo; │ └─ tensorflow 1.13.1 conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.14.0 would require │ └─ tensorflow 1.14.0 but there are no viable options │ ├─ tensorflow [1.10.0|1.13.1|1.14.0|1.9.0], which cannot be installed (as previously explained; │ ├─ tensorflow [1.13.1|1.14.0], which cannot be installed (as previously explained); │ └─ tensorflow 1.14.0 conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.15.0 would require │ └─ tensorflow 1.15.0.* , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.8.0 would require │ └─ tensorflow-gpu-base 1.8.0 , which requires │ └─ cudatoolkit 9.0.* , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 1.9.0 would require │ └─ tensorflow 1.9.0 but there are no viable options │ ├─ tensorflow [1.10.0|1.13.1|1.14.0|1.9.0], which cannot be installed (as previously explained; │ ├─ tensorflow [1.10.0|1.9.0], which cannot be installed (as previously explained); │ └─ tensorflow 1.9.0 conflicts with any installable versions previously reported; ├─ tensorflow-gpu 2.0.0 would require │ └─ tensorflow 2.0.0 , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 2.1.0 would require │ └─ tensorflow 2.1.0 , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 2.3.0 would require │ └─ tensorflow 2.3.0 , which conflicts with any installable versions previously reported; ├─ tensorflow-gpu 2.5.0 would require │ └─ tensorflow 2.5.0 , which conflicts with any installable versions previously reported; └─ tensorflow-gpu 2.6.0 would require └─ tensorflow 2.6.0 , which conflicts with any installable versions previously reported.
最新发布
09-28
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值