qq_37684688
qq_37684688
2017-05-06 08:23

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

  • python

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条回答