I'm getting this error message:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8z/_q3gpxbd2075gq9lfsfykj_m0000gn/T/pip-install-5iWbWu/nltk/setup.py'"'"'; __file__='"'"'/private/var/folders/8z/_q3gpxbd2075gq9lfsfykj_m0000gn/T/pip-install-5iWbWu/nltk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /private/var/folders/8z/_q3gpxbd2075gq9lfsfykj_m0000gn/T/pip-install-5iWbWu/nltk/
Complete output (1 lines):
error in nltk setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in singledispatch; python_version < "3.4" at ; python_version < "3.4"
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Can you provide the command that led to this error and confirm that /usr/bin/python
(as visible in the command) is 3.7.4?
Locally I was able to install nltk
from sdist in PyPI and locally run python setup.py egg_info
in a clone of their repo without any issues (Ubuntu 18.04, Python 3.7.2, pip 19.2.1).
There is also the new “pip debug” command you can try. @chrahunt Let us know if any other info in pip debug would help diagnose issues like these.
The setuptools version might also help.
I have the same error, On windows though same versions
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Most helpful comment
I have the same error, On windows though same versions