-
一次使用
pip install -i https://mirrors.aliyun.com/pypi/simple xxx
-
换源
编辑
pip.conf
文件如下:[global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
- Windows 下文件位置:
C:\Users\XXX\pip\pip.conf
- Linux & Mac OS 下文件位置:
~/.pip/pip.conf
- Windows 下文件位置:
-
此外还有