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.35k stars 1.25k forks source link

pip install pyautogui #490

Open peterrwilson99 opened 4 years ago

peterrwilson99 commented 4 years ago

After attempting to pip install pyautogui I had an error arise I have never seen with pip. I upgraded pip to the newest version and have tested on packages since. I am on Mac OS 10.14.6 with pip version 20.2.4. I don't believe its an error on my end, but if I am wrong let me know!

$ pip install pyautogui Collecting pyautogui Using cached PyAutoGUI-0.9.52.tar.gz (55 kB) Collecting pymsgbox Using cached PyMsgBox-1.0.9.tar.gz (18 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: /opt/anaconda3/bin/python /opt/anaconda3/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/ln/ht896ddd4_lgcjmcc6_xrpp80000gn/T/pip-build-env-nuob_lzv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel cwd: None Complete output (14 lines): Traceback (most recent call last): File "/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/anaconda3/lib/python3.8/site-packages/pip/main.py", line 23, in from pip._internal.cli.main import main as _main # isort:skip # noqa File "/opt/anaconda3/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 5, in import locale File "/opt/anaconda3/lib/python3.8/locale.py", line 16, in import re File "/opt/anaconda3/lib/python3.8/re.py", line 145, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

ERROR: Command errored out with exit status 1: /opt/anaconda3/bin/python /opt/anaconda3/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/ln/ht896ddd4_lgcjmcc6_xrpp80000gn/T/pip-build-env-nuob_lzv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.

pranay1208 commented 4 years ago

Received more or less the same error on Windows 10 as well

`Collecting pyautogui Using cached PyAutoGUI-0.9.52.tar.gz (55 kB) Collecting pymsgbox Using cached PyMsgBox-1.0.9.tar.gz (18 kB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\prana\AppData\Local\Temp\pip-build-env-qogilx6o\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel cwd: None Complete output (14 lines): Traceback (most recent call last): File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "c:\python38\lib\site-packages\pip__main__.py", line 23, in from pip._internal.cli.main import main as _main # isort:skip # noqa File "c:\python38\lib\site-packages\pip_internal\cli\main.py", line 5, in import locale File "c:\python38\lib\locale.py", line 16, in import re File "c:\python38\lib\re.py", line 145, in class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'

ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\prana\AppData\Local\Temp\pip-build-env-qogilx6o\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.`

th0mcumm1ngs commented 3 years ago

Same here

notsoocool commented 3 years ago

@peterrwilson99 have you tried switching the interpreter ??