已解决 A possible replacement is to enable the ‘–use-pep517’ option. Discussion can be found at https:/

已解决DEPRECATION: phrasetree 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
DEPRECATION: hanlp-common 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
DEPRECATION: hanlp-trie 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安装第三方模块,但是发生了报错(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的小伙伴),报错代码如下所示:


pip install hanlp

报错信息截图如下所示

在这里插入图片描述





报错翻译



报错信息翻译如下

描述:由于没有“pyproject.toml”,并且未安装“wheel”包,因此正在使用旧的“setup.py install”方法安装短语树。pip23.1将强制执行这种行为改变。一种可能的替代方法是启用“–use-pep517”选项。讨论可在https://github.com/pypa/pip/issues/8559

描述:hanlp common是使用传统的“setup.py install”方法安装的,因为它没有“pyproject.toml”,并且未安装“wheel”包。pip23.1将强制执行这种行为改变。一种可能的替代方法是启用“–use-pep517”选项。讨论可在https://github.com/pypa/pip/issues/8559

说明:正在使用旧的“setup.py install”方法安装hanlp trie,因为它没有“pyproject.toml”,并且未安装“wheel”包。pip23.1将强制执行这种行为改变。一种可能的替代方法是启用“–use-pep517”选项。讨论可在https://github.com/pypa/pip/issues/8559




报错原因



报错原因

pip安装第三方模块的时候缺少某些依赖所以会提示,小伙伴们按下面的代码安装即可解决!!!





解决方法



在pip命令后面加上--use-pep517即可:

pip install hanlp --use-pep517

加上后安装成功:


在这里插入图片描述

以上是此问题报错原因的解决方法,欢迎评论区留言讨论是否能解决,博主看到会给出回复和你所遇到的报错问题解决方法!!!

帮忙解决

本文已收录于:《告别Bug专栏》,欢迎免费订阅!!!

本专栏用于记录学习和工作中遇到的各种疑难编程Bug问题,以及粉丝群里小伙伴提出的各种问题,文章形式:报错代码 + 报错翻译 + 报错原因 + 解决方法,包括程序安装、运行程序过程中遇到的等等问题,博主心愿:让天下没有难学的编程,从此告别Bug!!!

订阅专栏 + 关注博主后,扫描下方二维码进全栈学习互助交流群可以帮忙解决问题,并且可以免费领取300本IT电子书籍、学习资料、简历模板、面试题库,和小伙伴们交流学习、抱团取暖,共同进步!!!

资料获取 | 技术交流 | 抱团学习 | 咨询分享 请点击下方名片后扫描二维码

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/yuan2019035055/article/details/128733203