安装各种机器学习包的时候,经常出现无法下载安装包的问题,而导致安装失败。清华的镜像速度很快,下面对本方法进行讲解。

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

注:把packages替换为安装模块。

配置法

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

 

以pytorch为例

pip install torch===1.3.0 torchvision===0.4.1 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
  • 2021-10-29
  • 2022-02-21
  • 2022-12-23
  • 2022-02-09
  • 2021-12-17
猜你喜欢
  • 2021-05-21
  • 2021-12-01
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
相关资源
相似解决方案