已解决because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 wi

已解决(pip安装fitz模块报错)DEPRECATION: configobj is being installed using the legacy ‘setup.py install’ method, because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the ‘–use-pep517’ option. Discussion can be found at https://github.com/pypa/pip/issues/8559





文章目录

  • 报错代码
  • 报错翻译
  • 报错原因
  • 解决方法
  • 帮忙解决





报错代码



粉丝群里面的一个粉丝想用pip安装fitz模块,但是发生了报错(跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错信息和代码如下:


pip install fitz


报错信息截图如下所示

已解决because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 wi_第1张图片





报错翻译



报错信息翻译

弃用:正在使用旧的“安装程序”安装configobj。py-install”方法,因为它没有“pyproject”。toml”和“wheel”包未安装。pip 23.1将强制这种行为改变。一种可能的替代方法是启用“–use-pep517”选项。有关讨论,请访问https://github.com/pypa/pip/issues/8559





报错原因



报错原因

安装fitz 模块需要安装依赖的文件,所以直接安装会报错,小伙伴们按下面的方法安装即可!!!





解决方法



执行下面的pip安装命令:

pip install fitz --use-pep517

安装成功了:
已解决because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 wi_第2张图片

帮忙解决

本文已收录于:《告别Bug》专栏

本专栏用于记录学习和工作中遇到的各种疑难Bug问题,以及粉丝群里小伙伴提出的各种问题,文章形式:报错代码 + 报错翻译 + 报错原因 + 解决方法,包括程序安装、运行程序过程中等等问题,订阅专栏+关注博主后如遇到其他问题可私聊帮忙解决!!!

你可能感兴趣的:(《告别Bug》,pip,python)