Python使用阿里云镜像

Python使用阿里云镜像

临时使用

pip install -i https://mirrors.aliyun.com/pypi/simple/ 包名

以后都使用阿里云的源

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

更换国内源 阿里巴巴开源镜像站

查看设置的结果

pip config list

取消设置

pip config unset global.index-url

也可以修改~/.config/pip/pip.conf

原文 Python使用阿里云镜像_lusing的专栏-CSDN博客_python阿里云镜像

你可能感兴趣的:(阿里云,python,云计算)