Python pip 采用国内镜像 可以明显提升下载速度

参考
Python PIP 国内镜像

链接

清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/

使用示例

pip install --upgrade opencv-python -i https://pypi.mirrors.ustc.edu.cn/simple/

默认PIP镜像

采用国内镜像后

from win32api import GetSystemMetrics

C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64>pip install pywin32 -i https://pypi.mirrors.ustc.edu.cn/simple/
Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/
Collecting pywin32
Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/84/e0/f7c34be2e080c248e378109c3a848cd07ab8e45e11d8dc9f1d818b3940c7/pywin32-301-cp37-cp37m-win_amd64.whl (9.2MB)
100% |████████████████████████████████| 9.2MB 3.0MB/s
Installing collected packages: pywin32
Successfully installed pywin32-301
You are using pip version 18.1, however version 21.2.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

posted @ 2021-02-01 16:20  boyang987  阅读(186)  评论(0编辑  收藏  举报