I am trying to download auto-py-to-exe on a different (windows) device than I usually use through pip. However when run I get the error (sorry it is so very very long):
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.
In your problem there are two problems occured
IndexError: list index out of range
.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
for installing GDAL on mac:
brew install gdal
and then
pip install gdal
solved this for me