1)临时使用镜像源下载Python包:

以numpy为例:

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

其他镜像源地址:


阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/

2)永久更改镜像源

在 “C:\Users\用户名” 文件夹下,添加pip文件夹,文件夹内新建pip.ini文件,内容为:

[global]

index-url = https://pypi.tuna.tsinghua.edu.cn/simple

标签: Windows, pip, 文件夹, Python, 镜像, simple, pypi, 源至

相关文章推荐

添加新评论,含*的栏目为必填