1, pip installation
(1), the installation package download
(2), extracting installation
Unzip the package into the installation directory, install knock python setup.py install
(3), pip.exe path system environment variable added
2, pip replacement source,
pip download the package slow default source, the source need to be replaced. Domestic common sources are:
Tsinghua: https: //pypi.tuna.tsinghua.edu.cn/simple
Ali cloud: http: //mirrors.aliyun.com/pypi/simple/
China University of Science and Technology https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of Science: http: //pypi.hustunique.com/
Shandong University of Technology: http: //pypi.sdutlinux.org/
Watercress: http: //pypi.douban.com/simple/
Alternatively Source Method:
- temporary
Parameters can be added when using the -i http://pypi.douban.com/simple/ pip
For example: pip install -i http://pypi.douban.com/simple/ pyqt5, which would go to the installation package from watercress pyqt5 side of the mirror.
- permanent
user directory, create a pip directory, such as: C: \ Users \ xx \ pip, then New File pip.ini, namely% HOMEPATH% \ pip \ pip.ini, enter the following (with watercress image file in pip.ini for example):
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host = pypi.douban.com
2, pip commonly used commands