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.


for installing GDAL on mac:

brew install gdal and then pip install gdal solved this for me


In your problem, there are two problems occurred

  1. IndexError: list index out of range.
  2. distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required

For the first error, You can try this code

pip install --no-use-wheel --upgrade distribute

Source


For the second error, you can use

pip install --upgrade setuptools

Source


If the above methods didn't work

  1. If your build tools further not answering to your problem, try to install build tools manually through this link.

  2. After that you have to restart your PC or laptop.

  3. Then try to run your code again

Tags:

Python

Cmd

Pip