首页 > 编程知识 正文

pip install tensorflow太慢,pip安装tensorflow2.0

时间:2023-05-06 00:26:48 阅读:193362 作者:2321

pip默认的路径是python官网的下载路径,直接下载下载速度会非常慢经常超时导致安装失败。

1. 使用vpn下载

2. 更换pip的下载路径

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣 http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

 

用管理员身份执行cmd,然后输入如下命令

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

 

如下是结果可以看到下载速度非常快:

 

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。