1、更新PiP 1 python -m pip install --upgrade pip 2、永久换源(阿里) 1 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ 3、临时换源(阿里) 1 pip install markdown -i https://mirrors.aliyun.com/pypi/simple/
1、更新PiP
2、永久换源(阿里)
3、临时换源(阿里)
4、验证源是否生效
5、恢复默认源删除配置文件或运行:
6、国内常用镜像源
7、指定镜像源下载库在安装或更新Python包时,可以使用-i或–index-url选项指定镜像源。例如,使用pip安装requests包时,可以指定清华大学的镜像源:
|
2019-06-18
2019-07-04
2021-05-23
2021-05-27
2021-05-27