nltk/nltk — Issue #166: easy_install NLTK 2.0.1rc1 Source failed on Ubuntu 11.04
Author: alexrudnick
Created: 2012-01-17 06:27:34+00:00
State: open

sudo easy_install http://nltk.googlecode.com/files/nltk-2.0.1rc1.tar.gz
Downloading http://nltk.googlecode.com/files/nltk-2.0.1rc1.tar.gz
Processing nltk-2.0.1rc1.tar.gz
Running nltk-2.0.1rc1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5pV7AU/nltk-2.0.1rc1/egg-dist-tmp-bJdL7r
Traceback (most recent call last):
File "/usr/bin/easy_install", line 9, in <module>
load_entry_point('distribute==0.6.15', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1906, in main
with_ei_usage(lambda:
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1887, in with_ei_usage
return f()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1910, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 363, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 578, in easy_install
return self.install_item(None, download, tmpdir, deps, True)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 633, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 823, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1100, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1089, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 29, in run_setup
lambda: execfile(
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 70, in run
return func()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 31, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 13, in <module>
File "/tmp/easy_install-5pV7AU/nltk-2.0.1rc1/nltk/__init__.py", line 92, in <module>

File "/tmp/easy_install-5pV7AU/nltk-2.0.1rc1/nltk/yamltags.py", line 1, in <module>
ImportError: No module named yaml

Migrated from http://code.google.com/p/nltk/issues/detail?id=691

earlier comments

notbot said, at 2011-07-11T01:26:11.000Z:

Try installing PyYAML first:

easy_install PyYAML

or

pip install PyYAML

jingle.yeah said, at 2011-07-11T02:13:43.000Z:

done, my fault, thanks:)
在 2011-7-11 上午9:27， 写道：

Source failed on Ubuntu 11.04

kmike84 said, at 2011-07-13T22:54:12.000Z:

I believe it is a duplicate of http://code.google.com/p/nltk/issues/detail?id=508 , and it is not your fault ;)

bobobo1618 said, at 2011-08-08T01:40:34.000Z:

Perhaps we should get NLTK into the Ubuntu repos?

alex.rudnick said, at 2011-08-08T02:09:25.000Z:

It's actually in Ubuntu already!

http://packages.ubuntu.com/natty/python-nltk

It looks like it's a bit out of date, though: 2.0b9 is about a year old.