"Pip Install Unroll": "Python Setup.Py Egg_Info" Failed With Error Code 1

Command python setup.py egg_info failed with error code 1 in /tmp/..../

How to fix the pip9.exceptions.InstallationError

Make sure the version of your pip and setuptools is sufficient for manylinux2014 wheels.

A) System Install

sudo python3 -m pip install -U pip
sudo python3 -m pip install -U setuptools

B) Virtual Env / Pipenv

# Within the venv
pip3 install -U pip
pip3 install -U setuptools

Explanation

For me, python setup.py egg_info probably failed because of a recent change in python wheels, as manylinux1 wheels were replaced by manylinux2014 wheels according to open-cv faq.

pip installation error command 'python setup.py egg_info' failed with error code 1

With pip install, the real error is always hidden a little further up the log because pip runs the install routine of your packages.

In your case check for ERROR: Traceback, which says 'retype requires Python 3.6+'.

So, the installed package requires Python 3.6 but from an earlier error message we can deduce your pip runs python 2.7 (look for DEPRECATION: Python 2.7 )

So, fix the error by running the command with pip3 or python3 pip.

To verify which version of python is used, call pip -V.

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output - while installing auto-py-to-exe through pip

Edit

Since this answer was posted, gevent has released several new versions, including prebuilt wheels for Python 3.8 on Windows, so the pip install gevent --pre shouldn't be necessary anymore - just run pip install auto-py-to-exe as usual and it should work.

Original answer

Allow prerelease gevent versions via

$ pip install gevent --pre
$ pip install auto-py-to-exe

Explanation: auto-py-to-exe is installable on Python 3.8 on Windows without any issues (this can be verified e.g. by running pip install auto-py-to-exe --no-deps). However, it requires bottle-websocket to be installed, which in turn has gevent dependency. gevent did not release a stable version that offers prebuilt wheels for Python 3.8 yet (this would be 1.5), so pip doesn't pick up prebuilt wheels and tries to build gevent==1.4 from source dist. Installing the prerelease 1.5 version of gevent avoids this.



Related Topics



Leave a reply



Submit