利用pip安装软件时,加上-i 豆瓣源或清华源,飞速下载~

-i https://pypi.doubanio.com/simple
-i https://pypi.tuna.tsinghua.edu.cn/simple

使用前: 4.1kB/s
pip install opencv-python
在这里插入图片描述

使用后:1.1MB/s
pip install opencv-python -i https://pypi.doubanio.com/simple
在这里插入图片描述

有对比才有伤害~

请牢记
-i https://pypi.doubanio.com/simple
or
-i https://pypi.tuna.tsinghua.edu.cn/simple
这一参数

附上清华的软件源 各系统版本相应对照:
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

参考链接:https://blog.csdn.net/pandamax/article/details/70674378

Tips:
pip install web.py -i http://pypi.douban.com/simple
修改 web.py 即可, 如 numpy 或者 scipy 或者matplotlib 或者pandas

猜你喜欢

转载自blog.csdn.net/xsy3858/article/details/83241020