gpt4 book ai didi

centos - 在 Amazon EMR 实例(它有 CentOS)上安装 textract 时出现问题。

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:27 24 4
gpt4 key购买 nike

因此,当我尝试在 Amazon EMR 实例中安装 textract 时,我遇到了这个问题。我已经尝试了网络上几乎所有可能的解决方案,似乎没有什么对我有用。有人可以帮忙吗?

Command - sudo pip install textract

Error - 

sleading-indentation
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
#include <pulse/pulseaudio.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/mnt/tmp/pip-build-3dsfXm/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-lW6lBv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /mnt/tmp/pip-build-3dsfXm/pocketsphinx/

最佳答案

迟到的答案 - 但仍可能对您有所帮助。

遇到类似问题 - 通过安装以下依赖项解决:

sudo apt-get install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev libpulse-dev swig

textract 文档中缺少的一个 是 libpulse-dev

sudo apt-get install libpulse-dev

也解决了以下链接: Can't install textract (for python 2.x) on Ubuntu because of pocketsphinx

关于centos - 在 Amazon EMR 实例(它有 CentOS)上安装 textract 时出现问题。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46543127/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com