Python pip安装或更新出现延时问题

https://www.cnblogs.com/yjd_hycf_space/p/9408524.html
引用该链接博主的方法

Python pip安装出现timeout 延时问题

解决办法

换国内镜像源:
将原来的命令pip install tensorflow-gpu换成pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu,这样就会从清华的镜像源下载最新版本的tensorflow-gpu的whl文件并安装。如果需要安装固定的版本,比如1.5.0,还可将命令改为pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.5.0,这样的话pip安装一定会快的飞起。

原因

资源在国外,国内下载资源很慢

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2021-05-19
  • 2022-12-23
  • 2021-08-03
  • 2021-08-23
  • 2021-10-18
相关资源
相似解决方案