pip Tsinghua source arranged in python
Mirror xadmin
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xadmin
command:
anaconda configure the Mirror
Mac and Linux
conda config --add channels https:
//mirrors
.tuna.tsinghua.edu.cn
/anaconda/pkgs/free/
conda config --
set
show_channel_urls
yes
Windows
Under windows, create a directory pip directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini, reads as follows
[global]
index-url = https:
//pypi.tuna.tsinghua.edu.cn/simple
pip configure the Mirror
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
Windows
Create a directory pip directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini, reads as follows
global]
index-url = https:
//pypi.tuna.tsinghua.edu.cn/simple
pip temporary image
temporary use:
-I parameter can be added when using the pip of https://pypi.tuna.tsinghua.edu.cn/simple
For example: the install PIP -i https://pypi.tuna.tsinghua.edu.cn/simple gevent, this will go from the image side of the mounting Tsinghua gevent library.
anaconda configure the Mirror
Mac and Linux
conda config --add channels https:
//mirrors
.tuna.tsinghua.edu.cn
/anaconda/pkgs/free/
conda config --
set
show_channel_urls
yes
Windows
Under windows, create a directory pip directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini, reads as follows
[global]
index-url = https:
//pypi.tuna.tsinghua.edu.cn/simple
pip configure the Mirror
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
Windows
Create a directory pip directly in the user directory, such as: C: \ Users \ xx \ pip, the new file pip.ini, reads as follows
global]
index-url = https:
//pypi.tuna.tsinghua.edu.cn/simple
pip temporary image
temporary use:
-I parameter can be added when using the pip of https://pypi.tuna.tsinghua.edu.cn/simple
For example: the install PIP -i https://pypi.tuna.tsinghua.edu.cn/simple gevent, this will go from the image side of the mounting Tsinghua gevent library.