由于pocketsphinx,无法在Ubuntu上安装textract(用于Python2.x)

2024-09-28 19:04:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经按照textract网站上的说明进行了操作,但是由于pocketsphinx,我得到了一个错误

我尝试过使用pip单独安装pocketsphinx,但出现了相同的错误:

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-drE9wI/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-nfLJNp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-drE9wI/pocketsphinx/

我正试着把它安装在Ubuntu 16.04上。如果重要的话,我会在虚拟机上运行它。在


Tags: installpipbuild错误codeopenrecordtmp
1条回答
网友
1楼 · 发布于 2024-09-28 19:04:17

libpulse dev缺少依赖项,否则pocketsphinx编译将失败。在

安装为

sudo apt-get install libpulse-dev

此外,在我的Ubuntu上,我必须安装其他几个依赖项才能使textract正常工作。在

^{pr2}$

相关问题 更多 >