python第三方包数据源

国内数据源:

清华: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/

临时使用加参数:-i https://pypi.tuna.tsinghua.edu.cn/simple

如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider,这样就会从清华这边的镜像去安装pyspider库。

pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

 

————————————————
版权声明:以上为CSDN博主「_jym」的原创文章中摘取,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_40828914/article/details/120867263

 

安装时指定安装目录

pip3 install xxxx --target=“目录”

posted @ 2022-05-07 13:08  BelleLs  阅读(229)  评论(0编辑  收藏  举报