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

前端 未结 3 1393
礼貌的吻别
礼貌的吻别 2020-12-02 00:12

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):

相关标签:
3条回答
  • 2020-12-02 00:25

    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.

    0 讨论(0)
  • 2020-12-02 00:30

    In your problem there are two problems occured

    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

    0 讨论(0)
  • 2020-12-02 00:37

    for installing GDAL on mac:

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

    0 讨论(0)
提交回复
热议问题