我正在使用this video开发一个项目。11:27中的命令返回一些错误。
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
C:\Users\pc\AppData\Local\Temp\pip-build-env-_03xpo02\overlay\Lib\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 setuptools==58.2.0
,pip install .
;我也有同样的错误。我的python版本是3.11.4
setup.py的完整代码:
import os
from setuptools import find_packages
from setuptools import setup
REQUIRED_PACKAGES = [
'avro-python3', 'apache-beam','pillow','lxml','matplotlib','Cython',
'contextlib2','tf-slim','six','pycocotools','lvis','scipy','pandas',
'tf-models-official>=2.5.1','tensorflow_io','keras',
'pyparsing==2.4.7', # TODO(b/204103388)
'sacrebleu<=2.2.0' # https://github.com/mjpost/sacrebleu/issues/209
]
setup(
name='object_detection',
version='0.1',
install_requires=REQUIRED_PACKAGES,
include_package_data=True,
packages=(
[p for p in find_packages() if p.startswith('object_detection')] +
find_packages(where=os.path.join('.', 'slim'))),
package_dir={
'datasets': os.path.join('slim', 'datasets'),
'nets': os.path.join('slim', 'nets'),
'preprocessing': os.path.join('slim', 'preprocessing'),
'deployment': os.path.join('slim', 'deployment'),
'scripts': os.path.join('slim', 'scripts'),
},
description='Tensorflow Object Detection Library',
python_requires='>3.6',
)
我认为这个错误是关于setuptools库的,但我在'setuptools'库目录中找不到任何license_file。
更新:问题是'tf-models-official>=2.5.1'行,我对这个库有问题。
1条答案
按热度按时间zwghvu4y1#
我解决了问题。主要问题是“tf-models-official”。我研究了一些,发现了这个GitHub问题。密码正在工作。