pip不能自动安装方法及pip(国内镜像)快速安装各种库

pip不能自动安装:

参考:https://jingyan.baidu.com/article/647f0115f45f4c7f2148a8b8.html

1. 浏览器中输入网址:https://bootstrap.pypa.io/get-pip.py转到进行下载,另存为即可如图。或者百度网盘下载链接: https://pan.baidu.com/s/1drSW3InNKj8gczbPNA1a7A 提取码: 7nhv

pip不能自动安装方法及pip(国内镜像)快速安装各种库_第1张图片

pip不能自动安装方法及pip(国内镜像)快速安装各种库_第2张图片pip不能自动安装方法及pip(国内镜像)快速安装各种库_第3张图片

 

pip不能自动安装方法及pip(国内镜像)快速安装各种库_第4张图片


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

推荐使用清华的镜像: https://pypi.tuna.tsinghua.edu.cn/simple

第一种方法这个网站里的包很全,当然也可以直接进这个网站手动下载。然后离线安装需要的包

第二种推荐:pip install *** -i 网址
比如,安装pyqt5包:

pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple

 

下载特定版本的例如Pyqt5

pip install PyQt5==5.1.10 -i http://.......


卸载相应的模块

pip uninstall PyQt5

pip不能自动安装方法及pip(国内镜像)快速安装各种库_第5张图片

你可能感兴趣的:(python)