asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.45k stars 1.26k forks source link

Unable to install pyautogui on windows #677

Closed birran237 closed 2 years ago

birran237 commented 2 years ago

I'm trying to install pyautogui via cmd with pip, and it gives me this error:

_C:\Users#username#>pip install pyautogui Collecting pyautogui Using cached PyAutoGUI-0.9.53.tar.gz (59 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute setup.py since setuptools is not available in the build environment. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

C:\Users\Biel>pip install pyautogui Collecting pyautogui Using cached PyAutoGUI-0.9.53.tar.gz (59 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: Can not execute setup.py since setuptools is not available in the build environment. [end of output]

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

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details._

I've checked it and I have pip and python fully updated, but it doesn't solve anything

birran237 commented 2 years ago

uninstalling and installing again python fixed it