最近下载一些第三方库,给我慢的要死,查了下资料,有的是延长时间,但是并没有解决速度慢的问题,感觉还是这种方法好。
之前一直用pip安装也没这么慢啊
这个时刻可能是在锻炼我强大的内心吧。
但镜像的速度就很香呀,咋没早点用镜像网站!!
镜像网站如下:
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
用镜像网站来下载,速度起飞~~~,使用下面的代码即可
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ 包名
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ --upgrade pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ opencv-python