博客
关于我
pip下载缓慢
阅读量:793 次
发布时间:2023-03-02

本文共 324 字,大约阅读时间需要 1 分钟。

pip下载缓慢的问题可能会影响工作效率,下面是两种解决方法:

解决方法一 在终端中执行以下命令,设置代理地址:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simplepip
pip config set install.trusted-host mirrors.aliyun.com

解决方法二 如果清华镜像源缺少某些依赖包,可以尝试使用阿里的镜像源:

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

请注意,在更换镜像源时,确保网络环境稳定,以避免下载速度问题。

转载地址:http://betfk.baihongyu.com/

你可能感兴趣的文章