前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )

【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )

作者头像
韩曙亮
发布2023-03-29 19:52:31
2.1K0
发布2023-03-29 19:52:31
举报
文章被收录于专栏:韩曙亮的移动开发专栏

文章目录

一、报错信息


报错信息 :

代码语言:javascript
复制
ERROR: Could not find a version that satisfies the requirement elftools (from versions: none)
代码语言:javascript
复制
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 问题 , 先排除是否是网络问题 , 先试试是否能安装成功 ;

在代码中 , 使用了如下代码 :

代码语言:javascript
复制
from elftools.elf.elffile import ELFFile

elftools.elf.elffile 需要导入依赖库 ;

默认提示 " Install package elftools " , 安装的是 elftools 库 ;

在这里插入图片描述
在这里插入图片描述

点击 " More Actions … " , 查看是否有其它选项 , 这里还可以安装 pyelftools 库 ;

在这里插入图片描述
在这里插入图片描述

pyelftools 库安装成功 ;

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-10-27,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 文章目录
  • 一、报错信息
  • 二、解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档