Pip 无法安装textract

Pip 无法安装textract,pip,nlp,sentiment-analysis,text-extraction,pdf-reader,Pip,Nlp,Sentiment Analysis,Text Extraction,Pdf Reader,使用命令pip install textract我无法在我的Ubuntu 16.04、Python 2上安装textract 我得到以下错误: Collecting textract Requirement already satisfied: python-pptx==0.6.5 in ./anaconda2/lib/python2.7/site-packages (from textract) (0.6.5) Requirement already satisfied: docx2txt==

使用命令
pip install textract
我无法在我的Ubuntu 16.04、Python 2上安装textract

我得到以下错误:

Collecting textract
Requirement already satisfied: python-pptx==0.6.5 in ./anaconda2/lib/python2.7/site-packages (from textract) (0.6.5)
Requirement already satisfied: docx2txt==0.6 in ./anaconda2/lib/python2.7/site-packages (from textract) (0.6)
Requirement already satisfied: six==1.10.0 in ./anaconda2/lib/python2.7/site-packages (from textract) (1.10.0)
Requirement already satisfied: xlrd==1.0.0 in ./anaconda2/lib/python2.7/site-packages (from textract) (1.0.0)
Requirement already satisfied: beautifulsoup4==4.5.3 in ./anaconda2/lib/python2.7/site-packages (from textract) (4.5.3)
Requirement already satisfied: argcomplete==1.8.2 in ./anaconda2/lib/python2.7/site-packages (from textract) (1.8.2)
Requirement already satisfied: EbookLib==0.15 in ./anaconda2/lib/python2.7/site-packages (from textract) (0.15)
Collecting pocketsphinx==0.1.3 (from textract)
  Using cached https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
Collecting chardet==2.3.0 (from textract)
  Using cached https://files.pythonhosted.org/packages/7e/5c/605ca2daa5cf21c87690d8fe6ab05a6f2278c451f4ede6456dd26453f4bd/chardet-2.3.0-py2.py3-none-any.whl
Requirement already satisfied: SpeechRecognition==3.6.3 in ./anaconda2/lib/python2.7/site-packages (from textract) (3.6.3)
Requirement already satisfied: Pillow>=2.6.1 in ./anaconda2/lib/python2.7/site-packages (from python-pptx==0.6.5->textract) (5.0.0)
Requirement already satisfied: XlsxWriter>=0.5.7 in ./anaconda2/lib/python2.7/site-packages (from python-pptx==0.6.5->textract) (1.0.2)
Requirement already satisfied: lxml>=3.1.0 in ./anaconda2/lib/python2.7/site-packages (from python-pptx==0.6.5->textract) (4.1.1)
Building wheels for collected packages: pocketsphinx
  Running setup.py bdist_wheel for pocketsphinx ... error
  Complete output from command /home/satyam/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-L5494L/pocketsphinx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-JVTDy9 --python-tag cp27:
  running bdist_wheel
  running build_ext
  building 'sphinxbase._ad' extension
  swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
  swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/swig
  creating build/temp.linux-x86_64-2.7/swig/sphinxbase
  creating build/temp.linux-x86_64-2.7/deps
  creating build/temp.linux-x86_64-2.7/deps/sphinxbase
  creating build/temp.linux-x86_64-2.7/deps/sphinxbase/src
  creating build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad
  gcc -pthread -B /home/satyam/anaconda2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/satyam/anaconda2/include/python2.7 -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-x86_64-2.7/swig/sphinxbase/ad_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
  gcc -pthread -B /home/satyam/anaconda2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/satyam/anaconda2/include/python2.7 -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
  deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for pocketsphinx
  Running setup.py clean for pocketsphinx
Failed to build pocketsphinx
boto3 1.7.6 requires botocore<1.11.0,>=1.10.6, which is not installed.
s3transfer 0.1.13 requires botocore<2.0.0,>=1.3.0, which is not installed.
grin 1.2.1 requires argparse>=1.1, which is not installed.
tensorflow-gpu 1.2.0 has requirement markdown==2.2.0, but you'll have markdown 2.6.11 which is incompatible.
requests 2.18.4 has requirement chardet<3.1.0,>=3.0.2, but you'll have chardet 2.3.0 which is incompatible.
Installing collected packages: pocketsphinx, chardet, textract
  Running setup.py install for pocketsphinx ... error
    Complete output from command /home/satyam/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-L5494L/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-record-Dy07hO/install-record.txt --single-version-externally-managed --compile:
    running install
    running build_ext
    building 'sphinxbase._ad' extension
    swigging swig/sphinxbase/ad.i to swig/sphinxbase/ad_wrap.c
    swig -python -modern -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/sphinxbase/swig -outdir sphinxbase -o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
    creating build
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/swig
    creating build/temp.linux-x86_64-2.7/swig/sphinxbase
    creating build/temp.linux-x86_64-2.7/deps
    creating build/temp.linux-x86_64-2.7/deps/sphinxbase
    creating build/temp.linux-x86_64-2.7/deps/sphinxbase/src
    creating build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad
    gcc -pthread -B /home/satyam/anaconda2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/satyam/anaconda2/include/python2.7 -c swig/sphinxbase/ad_wrap.c -o build/temp.linux-x86_64-2.7/swig/sphinxbase/ad_wrap.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
    gcc -pthread -B /home/satyam/anaconda2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DSPHINXBASE_EXPORTS -DPOCKETSPHINX_EXPORTS -DSPHINX_DLL -DHAVE_CONFIG_H -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -I/home/satyam/anaconda2/include/python2.7 -c deps/sphinxbase/src/libsphinxad/ad_pulse.c -o build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o -Wno-unused-label -Wno-strict-prototypes -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-result -Wno-sign-compare -Wno-misleading-indentation
    deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30: fatal error: pulse/pulseaudio.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/satyam/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-L5494L/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-record-Dy07hO/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-L5494L/pocketsphinx/
收集文本摘要
已满足要求:python pptx==0.6.5英寸/anaconda2/lib/python2.7/site-packages(来自textract)(0.6.5)
已满足要求:docx2txt==0.6 in./anaconda2/lib/python2.7/site-packages(来自textract)(0.6)
已满足要求:六个==1.10.0英寸/anaconda2/lib/python2.7/site-packages(来自textract)(1.10.0)
已满足要求:xlrd==1.0.0英寸/anaconda2/lib/python2.7/site-packages(来自textract)(1.0.0)
已满足要求:beautifulsoup4==4.5.3英寸/anaconda2/lib/python2.7/site-packages(来自textract)(4.5.3)
已满足要求:argcomplete==1.8.2 in./anaconda2/lib/python2.7/site-packages(来自textract)(1.8.2)
已满足要求:EbookLib==0.15英寸/anaconda2/lib/python2.7/site-packages(来自textract)(0.15)
收集pocketsphinx==0.1.3(来自textract)
使用缓存https://files.pythonhosted.org/packages/93/5f/a968e5d53d25e32deb78c3e169fd8612ecf53cc76e32cb40e19be35696af/pocketsphinx-0.1.3.tar.bz2
正在收集的chardet==2.3.0(来自textract)
使用缓存https://files.pythonhosted.org/packages/7e/5c/605ca2daa5cf21c87690d8fe6ab05a6f2278c451f4ede6456dd26453f4bd/chardet-2.3.0-py2.py3-none-any.whl
已满足要求:SpeechRecognition==3.6.3 in./anaconda2/lib/python2.7/site-packages(来自textract)(3.6.3)
已满足要求:枕头>=2.6.1英寸/anaconda2/lib/python2.7/site-packages(来自python pptx==0.6.5->textract)(5.0.0)
已满足要求:XlsxWriter>=0.5.7英寸/anaconda2/lib/python2.7/site-packages(来自python pptx==0.6.5->textract)(1.0.2)
已满足要求:lxml>=3.1.0 in./anaconda2/lib/python2.7/site-packages(来自python pptx==0.6.5->textract)(4.1.1)
为收集的包裹构建轮子:pocketsphinx
正在运行用于pocketsphinx的setup.py bdist_控制盘。。。错误
从命令/home/satyam/anaconda2/bin/python-u-c“import setuptools,tokenize;uuu file,uuuu='/tmp/pip-install-L5494L/pocketsphinx/setup.py';f=getattr(tokenize,'open',open)(uu file,'code=f.read()。replace('\r\n','n');f.close();exec(compile(code,uu file,'exec'))“exec”)“ist wheel-d/tmp/pipjvt27:
运转的车轮
运行build_ext
建筑“狮身人面像”扩建部分
swigg swig/sphinxbase/ad.i至swig/sphinxbase/ad_wrap.c
swig-python-modern-Ideps/sphinxbase/include-Ideps/sphinxbase/include/sphinxbase-Ideps/sphinxbase/include/android-Ideps/sphinxbase/swig-outdir sphinxbase-o swig/sphinxbase/ad_wrap.c swig/sphinxbase/ad.i
创建构建
创建build/temp.linux-x86_64-2.7
创建build/temp.linux-x86_64-2.7/swig
创建build/temp.linux-x86_64-2.7/swig/sphinxbase
创建build/temp.linux-x86_64-2.7/deps
创建build/temp.linux-x86_64-2.7/deps/sphinxbase
创建build/temp.linux-x86_64-2.7/deps/sphinxbase/src
创建build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad
gcc-pthread-B/home/satyam/anaconda2/compiler\u compat-Wl,--sysroot=/-fno严格别名-g-O2-DNDEBUG-g-fwrapv-O3-Wall-Wstrict原型-fPIC-DSPHINXBASE_导出-DPOCKETSPHINX_导出-DSPHINX_DLL-DHAVE_-CONFIG_H-Ideps/sphinxbase/include-Ideps/sphinxbase-Ideps/sphinxbase/include/android-I/home/satyam/anaconda2/include/python2.7-c swig/sphinxbase/ad-wrap.cbuild/temp.linux-x86_64-2.7/swig/sphinxbase/ad_wrap.o-Wno未使用标签-Wno严格原型-Wno括号-Wno未使用但设置变量-Wno未使用变量-Wno未使用结果-Wno符号比较-Wno错误缩进
gcc-pthread-B/home/satyam/anaconda2/compiler\u compat-Wl,--sysroot=/-fno严格别名-g-O2-DNDEBUG-g-fwrapv-O3-Wall-Wstrict原型-fPIC-DSPHINXBASE\u导出-DPOCKETSPHINX\u导出-DSPHINX\u DLL-DHAVE\u配置-H-Ideps/sphinxbase/include-Ideps/sphinxbase/include/sphinxbase-Ideps/sphinxbase/include/android-I/home/satyam/anaconda2/include/python2.7-cdeps/sphinxbase/src/libsphinxad/ad_pulse.c-o build/temp.linux-x86_64-2.7/deps/sphinxbase/src/libsphinxad/ad_pulse.o-Wno未使用标签-Wno严格原型-Wno括号-Wno未使用但设置变量-Wno未使用变量-Wno未使用结果-Wno符号比较-Wno错误缩进
deps/sphinxbase/src/libsphinxad/ad_pulse.c:44:30:致命错误:pulse/pulseaudio.h:没有这样的文件或目录
编译终止。
错误:命令“gcc”失败,退出状态为1
----------------------------------------
Pocketsphenx的建筑轮子失败
为pocketsphinx运行setup.py clean
无法构建pocketsphinx
boto3 1.7.6要求botocore=1.10.6,但未安装。
S30.1.13要求botocore=1.3.0,但未安装。
grin 1.2.1要求argparse>=1.1,但未安装。
tensorflow gpu 1.2.0的需求标记==2.2.0,但您将拥有不兼容的标记2.6.11。
请求2.18.4的requirement chardet=3.0.2,但您的chardet 2.3.0不兼容。
安装收集的软件包:pocketsphinx、chardet、textract
正在为pocketsphinx运行setup.py安装。。。错误
从命令/home/satyam/anaconda2/bin/python-u-c“import setuptools,tokenize;uuu file uuu='/tmp/pip-install-L5494L/pocketsphinx/setup.py';f=getattr(tokenize,'open',open)(uuu file,'code=f.read().replace('\r\n','n');f.close();exec(compile(code,'uu文件,'exec'))”安装--record/tmp/pip-record-Dy07hO/install-record.txt--外部管理的单一版本--编译:
正在运行的安装
运行build_ext
建筑“狮身人面像”扩建部分
swigg swig/sphinxbase/ad.i至swig/sphinxbase/ad_wrap.c
swig-python-modern-Ideps/sphinxbase/include-Ideps/sphinxbase/include/sphinxbase-Ideps/sphinxbase/include/android-Ideps/sphinxbase/swig-outdir sphinxbase-o swig/sphinxbase/ad_wrap.c swig/sphinx
sudo apt-get install libglib2.0-0=2.48.0-1ubuntu4
sudo apt-get install libglib2.0-dev
sudo apt-get install libpulse-dev
sudo apt-get install swig
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev libssl-de
sudo easy_install greenlet
sudo easy_install gevent
pip install textract