minimind
minimind copied to clipboard
配置环境时出现问题
Building wheels for collected packages: matplotlib Building wheel for matplotlib (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for matplotlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [581 lines of output]
********************************************************************************
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
C:\Users\jiajy\AppData\Local\Temp\pip-build-env-9zl0tvdw\overlay\Lib\site-packages\setuptools\dist.py:701: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!
********************************************************************************
Please replace its usage with implicit namespaces (PEP 420).
See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details.
********************************************************************************
!!
ep.load()(self, ep.name, value)
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "C:\Users\jiajy\AppData\Local\Temp\pip-build-env-9zl0tvdw\normal\Lib\site-packages\setuptools_scm\_integration\pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
C:\Users\jiajy\AppData\Local\Temp\pip-build-env-9zl0tvdw\normal\Lib\site-packages\setuptools_scm\git.py:312: UserWarning: git archive did not support describe output
warnings.warn("git archive did not support describe output")
Edit mplsetup.cfg to change the build options; suppress output with --quiet.
BUILDING MATPLOTLIB
python: yes [3.12.9 (tags/v3.12.9:fdb8142, Feb 4 2025, 15:27:58) [MSC
v.1942 64 bit (AMD64)]]
platform: yes [win32]
tests: no [skipping due to configuration]
macosx: no [Mac OS-X only]
我也遇到了这个情况,换成新版的matplotlib就好了,我用的python 3.12.9 + cuda12.4 + torch 2.4.0 + matplotlib 3.10.0
@Aoi-cn Thanks, 已更新requirements版本