我收到一个错误。请帮助我。
我想安装管道库,你知道,这需要 pyyaml。 但是 PYYAML 已经安装在我的 py3.10 平台上(我无法更改 py 版本)。
Building wheels for collected packages: pyyaml
Building wheel for pyyaml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─\> \[682 lines of output\]
In file included from ext/\_yaml.c:343:
ext/\_yaml.h:10: warning: "PyString_CheckExact" redefined
...
ext/\_yaml.c:20867:13: error: 'PyThreadState' {aka 'struct \_ts'} has no member named 'exc_traceback'; did you mean 'curexc_traceback'?
20867 | tstate-\>exc_traceback = local_tb;
| ^\~\~\~\~\~\~\~\~\~\~\~\~
| curexc_traceback
error: command '/usr/bin/gcc' failed with exit code 1
\[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyyaml
Running setup.py clean for pyyaml
Failed to build pyyaml
ERROR: Could not build wheels for pyyaml, which is required to install pyproject.toml-based projects