清华镜像站 python_使用清华、豆瓣镜像源下载tensorflow

由于区域限制,国内用户使用pip下载python库就会特别慢,一些大的包容易超时报错,比如tensorflow

使用国内镜像源来下载会提升下载速度,以tensorflow为例,下其它的包换名即可

清华镜像源:

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

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

清华的包比较全,但用的人多容易超时报错:

Traceback (most recent call last):

File "C:\Users\xyk\anaconda3\envs\tensorflow\lib\site-packages\pip_vendor\urllib3\response.py", line 430, in _error_catcher

raise ReadTimeoutError(self._pool, None, "Read timed out.")

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out.

推荐豆瓣镜像源下载tensorflow

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

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

实测速度远超清华镜像源

其它的包替换名字即可

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您可以使用清华镜像源进行下载Python模块样例。使用以下命令可以从清华镜像源安装wxPython模块: ``` pip3 install wxPython -i https://pypi.tuna.tsinghua.edu.cn/simple ``` 引用 另外,中国科技大学镜像源也是一个可选的下载源,您可以使用以下链接进行下载: ``` https://pypi.mirrors.ustc.edu.cn/simple/ ``` 引用 此外,还有其他一些镜像源可供选择,例如阿里云、豆瓣和中国科学技术大学镜像源。这些镜像源可以提供更快速的下载速度和更稳定的连接。引用 感谢您的光临,希望对您有所帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [如何使用wxPython GUI平台插件,快速实现开发python简单Application桌面应用程序](https://blog.csdn.net/qq_47452807/article/details/122971529)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [Python常用模块的常用方法介绍 os、math、random、time、datetime、国内常见镜像](https://blog.csdn.net/hmh4640219/article/details/112307005)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值