Collecting PyYAML==5.3.1 (from -r requirements.txt (line 74))
Using cached PyYAML-5.3.1.tar.gz (269 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
/home/asiv/anaconda3/envs/hack/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
pip install -r requirements.txt or bash build.sh fails on Python 3.8 due to deprecated setup.cfg in pyyaml 5.3.1 using license_file instead of license_files .
错误信息
pip install -r requirements.txt
orbash build.sh
fails on Python 3.8 due to deprecated setup.cfg in pyyaml 5.3.1 using license_file instead of license_files .Materials and reference
修复建议:将requirements.txt中的
改为