qq_37684688 2017-05-06 08:23
浏览 1735

安装newspaper出问题,怎么解决?

Collecting newspaper
Using cached newspaper-0.0.9.8.tar.gz
Collecting beautifulsoup4==4.3.2 (from newspaper)
Using cached beautifulsoup4-4.3.2.tar.gz
Collecting Pillow==2.5.1 (from newspaper)
Using cached Pillow-2.5.1.zip
Collecting PyYAML==3.11 (from newspaper)
Using cached PyYAML-3.11.zip
Collecting cssselect==0.9.1 (from newspaper)
Using cached cssselect-0.9.1.tar.gz
Collecting lxml==3.3.5 (from newspaper)
Using cached lxml-3.3.5.tar.gz
Collecting nltk==2.0.5 (from newspaper)
Using cached nltk-2.0.5.tar.gz
Complete output from command python setup.py egg_info:
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Extracting in /tmp/tmpXRU3_3
Now working in /tmp/tmpXRU3_3/distribute-0.6.21
Building a Distribute egg in /tmp/pip-build-FTHmMn/nltk
Traceback (most recent call last):
File "setup.py", line 37, in
exec(open(init_path).read(), d)
File "", line 8, in
File "/tmp/tmpXRU3_3/distribute-0.6.21/setuptools/__init__.py", line 2, in
from setuptools.extension import Extension, Library
File "/tmp/tmpXRU3_3/distribute-0.6.21/setuptools/extension.py", line 2, in
from setuptools.dist import get_unpatched
File "/tmp/tmpXRU3_3/distribute-0.6.21/setuptools/dist.py", line 6, in
from setuptools.command.install import install
File "/tmp/tmpXRU3_3/distribute-0.6.21/setuptools/command/
_init__.py", line 8, in
from setuptools.command import install_scripts
File "/tmp/tmpXRU3_3/distribute-0.6.21/setuptools/command/install_scripts.py", line 3, in
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/tmp/tmpXRU3_3/distribute-0.6.21/pkg_resources.py", line 2729, in
add_activation_listener(lambda dist: dist.activate())
File "/tmp/tmpXRU3_3/distribute-0.6.21/pkg_resources.py", line 700, in subscribe
callback(dist)
File "/tmp/tmpXRU3_3/distribute-0.6.21/pkg_resources.py", line 2729, in
add_activation_listener(lambda dist: dist.activate())
File "/tmp/tmpXRU3_3/distribute-0.6.21/pkg_resources.py", line 2229, in activate
self.insert_on(path)
File "/tmp/tmpXRU3_3/distribute-0.6.21/pkg_resources.py", line 2330, in insert_on
"with distribute. Found one at %s" % str(self.location))
ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/lib/python2.7/dist-packages
/tmp/pip-build-FTHmMn/nltk/distribute-0.6.21-py2.7.egg
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-FTHmMn/nltk/setup.py", line 23, in
distribute_setup.use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-FTHmMn/nltk/

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
    • ¥15 lammps拉伸应力应变曲线分析
    • ¥15 C++ 头文件/宏冲突问题解决
    • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
    • ¥50 安卓adb backup备份子用户应用数据失败
    • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
    • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
    • ¥30 python代码,帮调试,帮帮忙吧
    • ¥15 #MATLAB仿真#车辆换道路径规划
    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建