[GH-ISSUE #264] pip install auto-py-to-exe ERROR #233

Closed
opened 2026-02-26 12:20:54 +03:00 by kerem · 5 comments
Owner

Originally created by @Darskiy on GitHub (Apr 19, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/264

pip install auto-py-to-exe
Collecting auto-py-to-exe
  Using cached auto_py_to_exe-2.18.2-py2.py3-none-any.whl (91 kB)
Collecting Eel==0.12.4
  Using cached Eel-0.12.4.tar.gz (15 kB)
  Preparing metadata (setup.py) ... done
Collecting pyinstaller>=4.6
  Using cached pyinstaller-5.0-py3-none-win32.whl (2.0 MB)
Collecting bottle
  Using cached bottle-0.12.19-py3-none-any.whl (89 kB)
Collecting bottle-websocket
  Using cached bottle-websocket-0.2.9.tar.gz (2.0 kB)
  Preparing metadata (setup.py) ... done
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
  Preparing metadata (setup.py) ... done
Collecting whichcraft
  Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Requirement already satisfied: setuptools in c:\users\serjd\appdata\local\programs\python\python310-32\lib\site-packages (from pyinstaller>=4.6->auto-py-to-exe) (62.1.0)
Collecting pyinstaller-hooks-contrib>=2020.6
  Using cached pyinstaller_hooks_contrib-2022.4-py2.py3-none-any.whl (229 kB)
Collecting pywin32-ctypes>=0.2.0
  Using cached pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
  Using cached altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
Collecting pefile>=2017.8.1
  Using cached pefile-2021.9.3.tar.gz (72 kB)
  Preparing metadata (setup.py) ... done
Collecting gevent-websocket
  Using cached gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
  Using cached gevent-21.12.0.tar.gz (6.2 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [109 lines of output]
      Collecting setuptools>=40.8.0
        Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting Cython>=3.0a9
        Using cached Cython-3.0.0a10-py2.py3-none-any.whl (1.1 MB)
      Collecting cffi>=1.12.3
        Using cached cffi-1.15.0-cp310-cp310-win32.whl (167 kB)
      Collecting greenlet<2.0,>=0.4.17
        Using cached greenlet-1.1.2.tar.gz (91 kB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting pycparser
        Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
      Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed.
      Installing collected packages: wheel, setuptools, pycparser, greenlet, Cython, cffi
        Running setup.py install for greenlet: started
        Running setup.py install for greenlet: finished with status 'error'
        error: subprocess-exited-with-error

        Running setup.py install for greenlet did not run successfully.
        exit code: 1

        [74 lines of output]
        running install
        C:\Users\SerjD\AppData\Local\Programs\Python\Python310-32\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
          warnings.warn(
        running build
        running build_py
        creating build
        creating build\lib.win32-cpython-310
        creating build\lib.win32-cpython-310\greenlet
        copying src\greenlet\__init__.py -> build\lib.win32-cpython-310\greenlet
        creating build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_contextvars.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_cpp.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_extension_interface.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_gc.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_generator.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_generator_nested.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_greenlet.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_leaks.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_stack_saved.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_throw.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_tracing.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_version.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\test_weakref.py -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\__init__.py -> build\lib.win32-cpython-310\greenlet\tests
        running egg_info
        writing src\greenlet.egg-info\PKG-INFO
        writing dependency_links to src\greenlet.egg-info\dependency_links.txt
        writing requirements to src\greenlet.egg-info\requires.txt
        writing top-level names to src\greenlet.egg-info\top_level.txt
        reading manifest file 'src\greenlet.egg-info\SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        no previously-included directories found matching 'docs\_build'
        warning: no files found matching '*.py' under directory 'appveyor'
        warning: no previously-included files matching '*.pyc' found anywhere in distribution
        warning: no previously-included files matching '*.pyd' found anywhere in distribution
        warning: no previously-included files matching '*.so' found anywhere in distribution
        warning: no previously-included files matching '.coverage' found anywhere in distribution
        adding license file 'LICENSE'
        adding license file 'LICENSE.PSF'
        adding license file 'AUTHORS'
        writing manifest file 'src\greenlet.egg-info\SOURCES.txt'
        copying src\greenlet\greenlet.c -> build\lib.win32-cpython-310\greenlet
        copying src\greenlet\greenlet.h -> build\lib.win32-cpython-310\greenlet
        copying src\greenlet\slp_platformselect.h -> build\lib.win32-cpython-310\greenlet
        creating build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\setup_switch_x64_masm.cmd -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_aarch64_gcc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_alpha_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_amd64_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_arm32_gcc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_arm32_ios.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_csky_gcc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_m68k_gcc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_mips_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc64_aix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc64_linux.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc_aix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc_linux.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc_macosx.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_ppc_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_riscv_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_s390_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_sparc_sun_gcc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x32_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x64_masm.asm -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x64_masm.obj -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x64_msvc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x86_msvc.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\platform\switch_x86_unix.h -> build\lib.win32-cpython-310\greenlet\platform
        copying src\greenlet\tests\_test_extension.c -> build\lib.win32-cpython-310\greenlet\tests
        copying src\greenlet\tests\_test_extension_cpp.cpp -> build\lib.win32-cpython-310\greenlet\tests
        running build_ext
        building 'greenlet._greenlet' extension
        error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: legacy-install-failure

      Encountered error while trying to install package.

      greenlet

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for output from the failure.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Originally created by @Darskiy on GitHub (Apr 19, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/264 ``` pip install auto-py-to-exe Collecting auto-py-to-exe Using cached auto_py_to_exe-2.18.2-py2.py3-none-any.whl (91 kB) Collecting Eel==0.12.4 Using cached Eel-0.12.4.tar.gz (15 kB) Preparing metadata (setup.py) ... done Collecting pyinstaller>=4.6 Using cached pyinstaller-5.0-py3-none-win32.whl (2.0 MB) Collecting bottle Using cached bottle-0.12.19-py3-none-any.whl (89 kB) Collecting bottle-websocket Using cached bottle-websocket-0.2.9.tar.gz (2.0 kB) Preparing metadata (setup.py) ... done Collecting future Using cached future-0.18.2.tar.gz (829 kB) Preparing metadata (setup.py) ... done Collecting whichcraft Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB) Requirement already satisfied: setuptools in c:\users\serjd\appdata\local\programs\python\python310-32\lib\site-packages (from pyinstaller>=4.6->auto-py-to-exe) (62.1.0) Collecting pyinstaller-hooks-contrib>=2020.6 Using cached pyinstaller_hooks_contrib-2022.4-py2.py3-none-any.whl (229 kB) Collecting pywin32-ctypes>=0.2.0 Using cached pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB) Collecting altgraph Using cached altgraph-0.17.2-py2.py3-none-any.whl (21 kB) Collecting pefile>=2017.8.1 Using cached pefile-2021.9.3.tar.gz (72 kB) Preparing metadata (setup.py) ... done Collecting gevent-websocket Using cached gevent_websocket-0.10.1-py3-none-any.whl (22 kB) Collecting gevent Using cached gevent-21.12.0.tar.gz (6.2 MB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [109 lines of output] Collecting setuptools>=40.8.0 Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting Cython>=3.0a9 Using cached Cython-3.0.0a10-py2.py3-none-any.whl (1.1 MB) Collecting cffi>=1.12.3 Using cached cffi-1.15.0-cp310-cp310-win32.whl (167 kB) Collecting greenlet<2.0,>=0.4.17 Using cached greenlet-1.1.2.tar.gz (91 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed. Installing collected packages: wheel, setuptools, pycparser, greenlet, Cython, cffi Running setup.py install for greenlet: started Running setup.py install for greenlet: finished with status 'error' error: subprocess-exited-with-error Running setup.py install for greenlet did not run successfully. exit code: 1 [74 lines of output] running install C:\Users\SerjD\AppData\Local\Programs\Python\Python310-32\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win32-cpython-310 creating build\lib.win32-cpython-310\greenlet copying src\greenlet\__init__.py -> build\lib.win32-cpython-310\greenlet creating build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_contextvars.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_cpp.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_extension_interface.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_gc.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_generator.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_generator_nested.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_greenlet.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_leaks.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_stack_saved.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_throw.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_tracing.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_version.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\test_weakref.py -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\__init__.py -> build\lib.win32-cpython-310\greenlet\tests running egg_info writing src\greenlet.egg-info\PKG-INFO writing dependency_links to src\greenlet.egg-info\dependency_links.txt writing requirements to src\greenlet.egg-info\requires.txt writing top-level names to src\greenlet.egg-info\top_level.txt reading manifest file 'src\greenlet.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs\_build' warning: no files found matching '*.py' under directory 'appveyor' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.pyd' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution warning: no previously-included files matching '.coverage' found anywhere in distribution adding license file 'LICENSE' adding license file 'LICENSE.PSF' adding license file 'AUTHORS' writing manifest file 'src\greenlet.egg-info\SOURCES.txt' copying src\greenlet\greenlet.c -> build\lib.win32-cpython-310\greenlet copying src\greenlet\greenlet.h -> build\lib.win32-cpython-310\greenlet copying src\greenlet\slp_platformselect.h -> build\lib.win32-cpython-310\greenlet creating build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\setup_switch_x64_masm.cmd -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_aarch64_gcc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_alpha_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_amd64_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_arm32_gcc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_arm32_ios.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_csky_gcc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_m68k_gcc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_mips_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc64_aix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc64_linux.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc_aix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc_linux.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc_macosx.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_ppc_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_riscv_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_s390_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_sparc_sun_gcc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x32_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x64_masm.asm -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x64_masm.obj -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x64_msvc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x86_msvc.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\platform\switch_x86_unix.h -> build\lib.win32-cpython-310\greenlet\platform copying src\greenlet\tests\_test_extension.c -> build\lib.win32-cpython-310\greenlet\tests copying src\greenlet\tests\_test_extension_cpp.cpp -> build\lib.win32-cpython-310\greenlet\tests running build_ext building 'greenlet._greenlet' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure Encountered error while trying to install package. greenlet note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. ```
kerem closed this issue 2026-02-26 12:20:54 +03:00
Author
Owner

@Siddharth1India commented on GitHub (Apr 10, 2023):

Any solution? Facing same error.

<!-- gh-comment-id:1501550954 --> @Siddharth1India commented on GitHub (Apr 10, 2023): Any solution? Facing same error.
Author
Owner

@brentvollebregt commented on GitHub (Apr 10, 2023):

@Siddharth1India do you have Microsoft C++ Build Tools mentioned in the error installed? Might pay to take a look at the help it is offering.

<!-- gh-comment-id:1501666166 --> @brentvollebregt commented on GitHub (Apr 10, 2023): @Siddharth1India do you have Microsoft C++ Build Tools mentioned in the error installed? Might pay to take a look at the help it is offering.
Author
Owner

@Siddharth1India commented on GitHub (Apr 10, 2023):

@brentvollebregt found out that issue was with my machine. Tested on different machine and everything worked fine.

<!-- gh-comment-id:1501667731 --> @Siddharth1India commented on GitHub (Apr 10, 2023): @brentvollebregt found out that issue was with my machine. Tested on different machine and everything worked fine.
Author
Owner

@Darskiy commented on GitHub (Apr 10, 2023):

Any solution? Facing same error.

Due to my inattention, I immediately decided to ask for support, but everything turned out to be much simpler. The error log states that Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 🤷‍♂️

<!-- gh-comment-id:1502432794 --> @Darskiy commented on GitHub (Apr 10, 2023): > Any solution? Facing same error. Due to my inattention, I immediately decided to ask for support, but everything turned out to be much simpler. The error log states that `Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/` 🤷‍♂️
Author
Owner

@brentvollebregt commented on GitHub (Apr 12, 2023):

For others finding this issue: this is also discussed in the help post under "Possible Gevent Issue"

<!-- gh-comment-id:1504676668 --> @brentvollebregt commented on GitHub (Apr 12, 2023): For others finding this issue: this is also discussed in the help post under ["Possible Gevent Issue"](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#possible-gevent-issue)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#233
No description provided.