栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

记载一次解决python依赖的过程

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

记载一次解决python依赖的过程

比如我要安装一个lxml

# pip3 install lxml -i  https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting lxml
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8d/63/03f25363b26fa27a733d920554d73e34390830b3b5c012d7a9f721d1dc2d/lxml-4.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 11.5 MB/s eta 0:00:00
Installing collected packages: lxml
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cvemap 1.0.1 requires openpyxl>=3.0.7, which is not installed.
cvemap 1.0.1 requires paramiko>=2.7.2, but you have paramiko 2.6.0 which is incompatible.
Successfully installed lxml-4.8.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

提示 openpyxl 没有安装,并且 paramiko 需要升级高于2.7.2的版本

于是安装 openpyxl

pip3 install openpyxl -i  https://pypi.tuna.tsinghua.edu.cn/simple

升级 paramiko 

pip3 install --upgrade paramiko==2.7.2 -i  https://pypi.tuna.tsinghua.edu.cn/simple

再次安装 lxml,成功

pip3 install lxml -i  https://pypi.tuna.tsinghua.edu.cn/simple

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/915927.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号