Python第三方库安装国内镜像(清华镜像)

Python安装第三方库时,使用自带pip安装,经常安装出错。再多次安装仍不成功时建议使用国内镜像安装,个人感觉清华镜像是最全的,而且速度也快。
具体方法如下
在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent,这样就会从清华这边的镜像去安装gevent库。

发布了1 篇原创文章 · 获赞 0 · 访问量 10

猜你喜欢

转载自blog.csdn.net/liu881220/article/details/105254853