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

Par*_*tha 8 python deprecation-warning python-wheel python-3.7

我们在尝试部署 python 代码时遇到以下弃用错误。我们使用的是 python 3.7.12。我们尝试安装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
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Par*_*tha 8

我们在安装命令中添加了一个标志 --use-pep517,它解决了版本问题。因此,下面提供了运行我们保存所有包的requirement.txt 的最终脚本。

pip install -r requirements.txt --use-pep517
Run Code Online (Sandbox Code Playgroud)