1 临时使用:pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple
2 永久更改:
修改文件~/.pip/pip.conf
(没有就创建一个),内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
1 临时使用:pip install xxx -i https://pypi.tuna.tsinghua.edu.cn/simple
2 永久更改:
修改文件~/.pip/pip.conf
(没有就创建一个),内容如下:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple