ModuleNotFoundError: No module named 'pyautogui'

easy_install Pillow

 

pip install PyAutoGUI-0.9.35

 

pip install pyautogui==0.9.35

 

 

  • 명령 프롬프트 열기
  • CD C:\Python37-32\Scripts
  • pip install pillow
  • pip install pyautogui

 

최후의 방법  이렇게 하고 나서 

python -m pip install --upgrade pip

python -m pip install --upgrade Pillow

pip install pyautogui   

깔끔하게 깔리고 작동함

 

########## 이미지 영역 찾기 스크린샷 시작
five_btn = pyautogui.locateOnScreen('C://test.png')
center = pyautogui.center(five_btn)
if center:
print(center)
pyautogui.click(center)
########## 이미지 영역 찾기 스크린샷 끝