Python
想做一个语音识别的程序,安装PocketSphinx却出错了。
报错信息:
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\DELL\AppData\Local\Temp\pip-install-2qodfcsc\pocketsphinx_9bbf46ace5b74aac8068b7673fa02315\setup.py", line 21, in
from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst
ModuleNotFoundError: No module named 'distutils.command.bdist_wininst'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
怎么回事?