Anaconda Configuring mirroring
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 PIP directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, the following
[Global]index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
PIP configuration Image
Linux
Modify the ~/.pip/pip.conf (without creating one), modify the Index-url to tuna as follows:
[Global] Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
Windows
Create a PIP directory directly in the user directory, such as: C:\Users\xx\pip, new file Pip.ini, the content is as follows
[Global] Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple
Pip Temporary Mirror
Temporary use:
You can add the parameter-I https://pypi.tuna.tsinghua.edu.cn/simple when using PIP
For example: Pip install-i https://pypi.tuna.tsinghua.edu.cn/simple gevent, this will be from the Tsinghua side of the mirror to install the Gevent library.
Python pip Anaconda Conda switch Domestic source (Tsinghua Mirror)