Bug描述
PyYAML依赖错误安装时出现。
To Reproduce
- 安装python 3.12
- pip install ludwig
Expected behavior
成功地进行安装 :-)
File "/private/var/folders/dz/23t0qk7d6k5g1jrh9vqv6yh80000gn/T/pip-build-env-o_ojprq7/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
'''
Environment (please complete the following information):
- OS: macOS Sonoma 14.3.1 (Up to date)
- Version [e.g. 22]
- Python version : 3.12.2
- Ludwig version : 0.10.2
Additional context
For python 3.12.2 the right PyYAML version is 6.0.1.
The error seems to be in the requirement "PyYAML!=5.4.*,<6.0.1,>=3.12"
1条答案
按热度按时间kg7wmglp1#
在安装Python 3.12的依赖项时,我遇到了一系列错误,所以我决定使用Python 3.11.9。重新安装了所有内容后,它可以正常工作了。希望我的回答符合你的预期。:)