When I tried to pip the python framework for natural language generation evaluation index called NLGEval, I got the following error.
ERROR: Command errored out with exit status 1:
command: /hoge -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-1_dfztb4/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-1_dfztb4/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 /tmp/pip-pip-egg-info-02126d0b
cwd: /tmp/pip-req-build-1_dfztb4/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-1_dfztb4/setup.py", line 24, in <module>
reqs = [str(ir.req) for ir in install_reqs]
File "/tmp/pip-req-build-1_dfztb4/setup.py", line 24, in <listcomp>
reqs = [str(ir.req) for ir in install_reqs]
AttributeError: 'ParsedRequirement' object has no attribute 'req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Going through the error statement, I found that a similar error occurred when installing a different framework, where it said that reverting pip from 20.1 to 19.3.1 would work. https://github.com/ansible/awx/issues/6870#issuecomment-620979872
I obediently changed it to 19.3.1 and it worked.
pip install pip==19.3.1
This is the first time I have downgraded pip. .. ..
Recommended Posts