python 弃用错误:未安装“wheel”软件包

ep6jt1vc  于 2022-12-25  发布在  Python
关注(0)|答案(2)|浏览(1407)

我们在尝试部署python代码时遇到以下弃用错误。我们使用的是python 3.7.12。我们尝试安装wheel包作为部署的一部分,但没有成功。我们需要提到wheel的任何特定版本吗--您能放一些灯吗?

2022-11-14T19:34:39.7229174Z ##[error]Bash wrote one or more lines to the standard error stream.
2022-11-14T19:34:39.7241399Z ##[error]  DEPRECATION: wrapt 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

2022-11-14T19:34:39.7244863Z ##[error]  DEPRECATION: keyless-fernet 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

2022-11-14T19:34:39.7247898Z ##[error]  DEPRECATION: tornado 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

2022-11-14T19:34:39.7251293Z ##[error]  DEPRECATION: pyrsistent 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

2022-11-14T19:34:39.7254435Z ##[error]  DEPRECATION: Flask-JWT-Extended 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

lb3vh1jj

lb3vh1jj1#

我们在installation命令中添加了一个标记--use-pep 517,它解决了版本的问题,所以下面提供了运行requirement.txt的最终脚本。

pip install -r requirements.txt --use-pep517
omqzjyyz

omqzjyyz2#

抑郁:正在使用旧setup.py install方法安装scapy,因为它没有pyproject.toml,并且未安装wheel包。pip 23.1将强制此行为更改。可能的替代方法是启用--use-pep517选项。
有关讨论,请访问https://github.com/pypa/pip/issues/8559

相关问题