pip手动安装get-pip.py下载

发布时间 2023-09-19 22:45:34作者: 悟透

一、官方get-pip.py(适合3.7及以上使用)

https://bootstrap.pypa.io/pip/get-pip.py

其他版本,访问 https://bootstrap.pypa.io/pip/ 寻找


二、国内镜像源get-pip.py(适合3.7及以上使用)

阿里:http://mirrors.aliyun.com/pypi/get-pip.py

其他版本,访问 http://mirrors.aliyun.com/pypi/ 寻找


三、注意,如果下载文件过程总是断开,那么考虑更换镜像源

(建议只写一个镜像源,写多个也会出现问题,最后又去访问国外的源,)
image

阿里云,源添加方法:
https://developer.aliyun.com/mirror/pypi/?spm=a2c6h.25603864.0.0.4add5992YkCDW2


四、安装成功后,手动把pip路径添加到环境变量中

image


默认安装pip在Scripts文件夹下,Scripts和python.exe同级目录
手动执行 get-pip.py 后,安装到 DLLs\Scripts 文件夹下,DLLs和python.exe同级目录


添加环境变量:
https://www.cnblogs.com/wutou/p/17709841.html






免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。




参考、来源: