A story that sometimes does not work if pip is up to date

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

A story that sometimes does not work if pip is up to date
A story that pyenv is stuck because the python execution command PATH does not pass
The story of the release work of the application that Google does not tell
A special Python codec that seems to know but does not know
How to fix a bug that jupyter notebook does not start automatically
[Note] A story about not being able to break through a proxy with pip
I tried to make a dictionary function that does not distinguish between cases
It is said that libmysqlclient.so.18 does not exist
How to use pip, a package management system that is indispensable for using Python
[systemd] How to deal with the problem that fancontrol does not work after suspending
How to use a library that is not originally included in Google App Engine
How to use a tp-link wireless LAN slave unit that does not support Linux
[Pyhton] I want to solve the problem that tkinter does not work on MacOS11
[Python] Precautions when it does not work even if TimedRotatingFileHandler is set in basicConfig in python2
[Small story] What to do if "Error with child process: Building resource'awsToolkitSamLocalResource'" does not work when Lambda is locally executed by SAM from VS Code
When writing to a csv file with python, a story that I made a mistake and did not meet the delivery date
What to do if a UnicodeDecodeError occurs in pip
A story that I was addicted to at np.where
python> check NoneType or not> if a == None:> if a is None:
A story that was terrible if SELinux was properly disabled
The story that yapf did not work in vscode
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
[Linux] How to install a package on a server that does not have a network environment (standalone)
Create a defaultdict that returns a defaultdict to create a world where KeyErrror does not occur (+ JSON parsing example)
What to do when a Missing artifact occurs in a jar that is not defined in pom.xml
Generate a password that is easy to remember with apg
What to do if pip gives a DistributionError in Homebrew
A story that stumbled when using pip in a proxy environment
The story that `while queue` did not work in python
If an engineer is asked to entertain a wedding reception
If it is not easy to understand, it cannot be improved.
The story that the private key is set to 600 with chmod
[Python] A story that seemed to fall into a rounding trap
I implemented a method to calculate the evaluation index (specificity, NPV) that scikit-learn does not have
A decorator that notifies you via AWS-SNS if the function does not finish within the specified time
A story that is a little addicted to the authority of the directory specified by expdp (for beginners)
A story that didn't work when I tried to log in with the Python requests module
I want to specify a file that is not a character string for logrotate, but is it impossible?
What to do if the user name is changed and the pyenv library path does not pass