«

PIP_相关指令

Paladin 发布于 阅读:243 oTher


PIP 常用命令

1.# 更新pip和setuptools:确保你的pip和setuptools版本是最新的(解决安装时报错“ ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts” 这个错误提示表明在解决软件包依赖冲突时遇到了问题,导致无法达成解决方案。你可以访问https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts 获取更多关于处理依赖冲突的帮助。)
pip3 install --upgrade pip setuptools
2.# pip升级到最新
python.exe -m pip install --upgrade pip 
3.# 配置中科大镜像
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
4.# 配置阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
5.# 配置腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
7.# 配置豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/

PIP