Tag Archives: Command XXX failed with error code 1

[Solved] Command “python setup.py egg_info” failed with error code 1

Solve the problem of Command “python setup.py egg_info” failed with error code 1

In the execution pip install -r requirements.txtencountered an error when:

Command "python setup.py egg_info" failed with error code 1

The solution is to update setuptools and pip:

pip install --upgrade setuptools
python -m pip install --upgrade pip