错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )
Posted 韩曙亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )相关的知识,希望对你有一定的参考价值。
一、报错信息
报错信息 :
ERROR: Could not find a version that satisfies the requirement elftools (from versions: none)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement elftools (from versions: none)
ERROR: No matching distribution found for elftools
二、解决方案
遇到 ERROR: Could not find a version that satisfies the requirement xxx
问题 , 先排除是否是网络问题 , 先搭梯子试试是否能安装成功 ;
在代码中 , 使用了如下代码 :
from elftools.elf.elffile import ELFFile
elftools.elf.elffile
需要导入依赖库 ;
默认提示 " Install package elftools " , 安装的是 elftools 库 ;
点击 " More Actions … " , 查看是否有其它选项 , 这里还可以安装 pyelftools 库 ;
pyelftools 库安装成功 ;
以上是关于错误记录Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )的主要内容,如果未能解决你的问题,请参考以下文章
Python djangorestframework安装库报错SSL: CERTIFICATE_VERIFY_FAILED