Open hiir opened 6 years ago
Is this issue has any solution
Running these before installing rake-nltk fixed the problem for me. All of them may or may not be required:
pip3 install -U nltk
pip3 install -U numpy
python3 -m nltk.downloader all
pip3 install rake-nltk
Note that while rake-nltk
will be successfully installed by falling back on setup.py install
in pip version 20 and prior, this fallback will be deprecated in version 21. Here's the deprecation warning:
DEPRECATION: rake-nltk was installed using the legacy 'setup.py install' method, because a wheel could not be built for it.
pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above.
You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Facing the same issue.
Leave downloading datasets to user!
Hello,
When trying to build a wheel for rake-nltk package it fails if system does not have nltk package installed explicitly.
issue pip wheel command:
Apparently during
bdist
orbdist_wheel
commands distutils also does an "fake" install -- and apparently without installing requirements before.From docs: https://docs.python.org/3/distutils/builtdist.html
I am not familiar with distutils enough to know if it is possible to distinguish such "fake" install from real install.
Our use case is to build wheels during packaging progress on build server and then later use these wheels to speed up deployment. There is no reason to install python packages on build server itself and in some cases it would be hard to identify requirements before -- for an example if some other package has rake-nltk as install_requirement in setup.py.
This problem would not exists if rake-nltk would be available as wheel on pypi (but then package installation would not automatically download "punkt" and "stopwords").