Commonly used domestic source mirror address:
Sometimes when installing some dependent packages, the network speed is slow, and the timeout directly, you can specify the domestic source mirror.
- pip install -i domestic mirror address package name
E.g: pip install -i https://mirrors.aliyun.com/pypi/simple/ numpy
Commonly used domestic source mirror address:
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/
note: The new version of ubuntu requires https source, so pay attention
Reprinted: https://www.cnblogs.com/niewd/p/12218552.html