Python Linux and other use of domestic source installation software faster you deserve to have!
Watercress Source: https://pypi.douban.com/simple/
Ali: http://mirrors.aliyun.com/pypi/simple/
Tsinghua Source: https://pypi.tuna.tsinghua.edu.cn/simple/
Huazhong University of Technology Source: http://pypi.hustunique.com/simple/
Shandong University of Technology source : http://pypi.sdutlinux.org/simple/
China University of Science and Technology source : http://pypi.mirrors.ustc.edu.cn/simple/
1. Install software (package) using PIP: Specify Source
Pip install-i source software (or package)
For example: pip install-i https://pypi.douban.com/simple pymysql
2, once and for all the practice:
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
[Install]
Create a "pip" directory under your "C:\Users\ your username \" directory,
Create a "Pip.ini" file under the "Pip" Directory (note: Encoded in UTF-8 no BOM format);
"Pip.ini" File contents:
[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted
Note: The Trusted-host option is necessary in order to avoid trouble, otherwise the use of the prompt is not trusted,
or add "--trusted-host=mirrors.aliyun.com" option;
Note: A Web page prompts you to create or modify a configuration file
(Linux files in ~/.pip/pip.conf,windows in%homepath%\pip\pip.ini),
At least Windows7 "%homepath%\pip\pip.ini" This directory is not working.
- Pycharm specifying a third-party source
Click File---> Setting ---> Project interpeter,
Click the button on the right to pop up the package management interface,
Select the Manage Repositories button below,
Add the image above to
The source address can be followed by a "/" or No "/":
Https://pypi.tuna.tsinghua.edu.cn/simple
https://pypi.tuna.tsinghua.edu.cn/simple/
Python uses domestic source installation software