For Python developers, installing PIP packages is commonplace. However, the download speed of foreign sources is too slow and wastes time. And often there are installation errors after downloading. Therefore, replacing the PIP installation source with a domestic mirror can greatly improve the download speed and the installation success rate.
Domestic sources: The
new version of ubuntu requires the use of https sources, pay attention.
Tsinghua: https://pypi.tuna.tsinghua.edu.cn/simple
Alibaba Cloud: http://mirrors.aliyun.com/pypi/simple/
University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of Science and Technology: http://pypi.hustunique.com/
Shandong University of Technology: http://pypi.sdutlinux.org/
Douban: http://pypi.douban.com/simple/
How to use:
You can add parameters when using pip-i https://pypi.tuna.tsinghua.edu.cn/simple
For example: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Numpy, this will install the Numpy library from the Tsinghua mirror.