Original link:
https://blog.csdn.net/sp1206/article/details/81127922
python, pip modify the source and conda source for domestic Tsinghua mirroring
temporary use:
After pip additional parameters-i
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
Permanent use:
for Linux:
modified ~ / .pip / pip.conf (not create one), to modify the index-url Tuna, as follows:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
Under windows:
created directly in the user directory, a pip directory, such as: C: \ Users \ xxxx \ pip, the new file pip.ini, reads as follows
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
conda source changes:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes