临时使用pip+国内源
示例:
pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
永久使用pip+国内源
示例:
# 永久设置阿里云的国内源
pip config set global.trusted-host mirrors.aliyun.com
pip config set global.index-url https://mirrors.aliyun.com/simple
# 永久设置清华大学的国内源
pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
————————————————
版权声明:本文为CSDN博主「与物为春」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43824829/article/details/127555566