csurfer / rake-nltk

Python implementation of the Rapid Automatic Keyword Extraction algorithm using NLTK.
https://csurfer.github.io/rake-nltk
MIT License
1.06k stars 150 forks source link

python rake-nltk/setup.py install error: package directory 'rake_nltk' does not exist #36

Open sylwiaoz opened 5 years ago

sylwiaoz commented 5 years ago

Hello,

I am getting the following error message "error: package directory 'rake_nltk' does not exist" when installing rake-nltk with: git clone https://github.com/csurfer/rake-nltk.git python rake-nltk/setup.py install :

I also tried the option pip install rake-nltk but the installation also fails:

File "/tmp/pip-build-2zTHYP/rake-nltk/setup.py", line 17, in _post_install import nltk ImportError: No module named nltk


Failed building wheel for rake-nltk Running setup.py clean for rake-nltk Running setup.py bdist_wheel for nltk ... done Stored in directory: /home/sylwia/.cache/pip/wheels/4b/c8/24/b2343664bcceb7147efeb21c0b23703a05b23fcfeaceaa2a1e Successfully built nltk Failed to build rake-nltk Installing collected packages: six, singledispatch, nltk, rake-nltk Running setup.py install for rake-nltk ... done Successfully installed nltk-3.4 rake-nltk-1.0.4 singledispatch-3.4.0.3 six-1.12.0

I would appreciate if you could help me out with that.

Kind regards Sylwia

lawzava commented 5 years ago

Having same issue.

cbz commented 5 years ago

Take a look here: https://github.com/csurfer/rake-nltk/issues/30#issuecomment-483013192 AFAICT the issue is with the nltk module not being properly installed when its installed as part of rake-nltk's chain of dependencies. You may need some or all of the commands in that comment. I was able to get away with just running the first step (pip install -U nltk).

That should solve the issue you are both having.

daisySSSS commented 5 years ago

Same issue. No idea how to solve.

running install
running build
running build_py
error: package directory 'rake_nltk' does not exist