반응형
안녕하세요.
즐거운 우리집 (https://joyfulhome.tistory.com/) 입니다.
오늘은 ModuleNotFoundError: No module named 'pyautogui' 라는 오류를 만나게 되었을때
대처하는 방법에 대해서 말씀 드리겠습니다.
pyautogui 모듈이 없다는 것은 그 네이밍 그대로 설치는 하는 거라 어렵진 않으실 것입니다.
모듈이 없어서 에러가 날때 가장 좋은 방법은
없는 그 모듈 네임을 바로 설치해 보는 것입니다.
대부분은 그대로 설치가 되어 해당 오류는 사라지게 되고,
간혹가다 없는 것들은 제가 올려드린 이름의 모듈을 검색하셔서 설치 진행하시면 됩니다. ^^
그럼 pyautogui 모듈을 설치하는 내용을 같이 보실까요?
반응형
오류내용
ModuleNotFoundError: No module named 'pyautogui' |
해결방법
pip install pyautogui |
사용방법
>pip install pyautogui Collecting pyautogui Downloading PyAutoGUI-0.9.53.tar.gz (59 kB) |████████████████████████████████| 59 kB 1.5 MB/s Preparing metadata (setup.py) ... done Collecting pymsgbox Downloading PyMsgBox-1.0.9.tar.gz (18 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting PyTweening>=1.0.1 Downloading pytweening-1.0.4.tar.gz (14 kB) Preparing metadata (setup.py) ... done Collecting pyscreeze>=0.1.21 Downloading PyScreeze-0.1.28.tar.gz (25 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting pygetwindow>=0.0.5 Downloading PyGetWindow-0.0.9.tar.gz (9.7 kB) Preparing metadata (setup.py) ... done Collecting mouseinfo Downloading MouseInfo-0.1.3.tar.gz (10 kB) Preparing metadata (setup.py) ... done Collecting pyrect Downloading PyRect-0.1.4.tar.gz (15 kB) Preparing metadata (setup.py) ... done Collecting pyperclip Downloading pyperclip-1.8.2.tar.gz (20 kB) Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for pyautogui, since package 'wheel' is not installed. Using legacy 'setup.py install' for pygetwindow, since package 'wheel' is not installed. Using legacy 'setup.py install' for PyTweening, since package 'wheel' is not installed. Using legacy 'setup.py install' for mouseinfo, since package 'wheel' is not installed. Using legacy 'setup.py install' for pyperclip, since package 'wheel' is not installed. Using legacy 'setup.py install' for pyrect, since package 'wheel' is not installed. Building wheels for collected packages: pyscreeze, pymsgbox Building wheel for pyscreeze (pyproject.toml) ... done Created wheel for pyscreeze: filename=PyScreeze-0.1.28-py3-none-any.whl size=13023 sha256=1e4d6060abf1ed0adda6473b3e073459985b437aab072ef251bacb731f350f5c Stored in directory: c:\users\joyfulhome\appdata\local\pip\cache\wheels\a2\5b\86\99f1d8fac5d92de0ccb3f0d4ad15e3f4278baf75a9b0f20b93 Building wheel for pymsgbox (pyproject.toml) ... done Created wheel for pymsgbox: filename=PyMsgBox-1.0.9-py3-none-any.whl size=7420 sha256=c59f0967c792186a641a7a187d2104abdfc43f93f12b8dda50e4d2999d238e19 Stored in directory: c:\users\joyfulhome\appdata\local\pip\cache\wheels\7f\13\8c\584c519464297d9637f9cd29fd1dcdf55e2a2cab225c76a2db Successfully built pyscreeze pymsgbox Installing collected packages: pyrect, pyperclip, PyTweening, pyscreeze, pymsgbox, pygetwindow, mouseinfo, pyautogui Running setup.py install for pyrect ... done Running setup.py install for pyperclip ... done Running setup.py install for PyTweening ... done Running setup.py install for pygetwindow ... done Running setup.py install for mouseinfo ... done Running setup.py install for pyautogui ... done Successfully installed PyTweening-1.0.4 mouseinfo-0.1.3 pyautogui-0.9.53 pygetwindow-0.0.9 pymsgbox-1.0.9 pyperclip-1.8.2 pyrect-0.1.4 pyscreeze-0.1.28 |
역시 마지막의 Successfully 를 보며 한 번 웃어주시고... ^^
이번 주말만 지나면 설날 입니다.
모두 모두 새해 복 많이 받으시고, 즐거운 하루 되세요~ ^^
반응형
'Development > Python' 카테고리의 다른 글
[오류해결] ModuleNotFoundError: No module named 'xlsxwriter' (50) | 2022.02.08 |
---|---|
[오류해결] ModuleNotFoundError: No module named 'pandas' (66) | 2022.02.05 |
[오류해결] ModuleNotFoundError: No module named 'win32com' (70) | 2022.01.19 |
[오류해결] ModuleNotFoundError: No module named 'Cryptodome' (36) | 2022.01.10 |
[오류해결] WARNING: You are using pip version ***; however, version *** is available. (35) | 2022.01.07 |