강의

멘토링

커뮤니티

Inflearn Community Q&A

sellytop27888's profile image
sellytop27888

asked

[New Revised Edition] This is Real Excel Automation - Basic Level

Running Python on My Computer (Setup)

mouseInfo

Written on

·

279

0

import pyautogui 
pyautogui.mouseInfo()  

이렇게 해서 실행하면

터미널에

This probably means that Tcl wasn't installed properly.

계속 이렇게만 뜹니다ㅜㅜ

뭐가 문제인걸ㄲㅏ요?

좋은 강의 감사합니다! 😃

pythonseleniumopenpyxl

Answer 1

1

startcoding님의 프로필 이미지
startcoding
Instructor

 

😃 안녕하세요! 문제 해결에 도움을 드리겠습니다.

pyautogui.mouseInfo() 명령어를 실행할 때 발생하는 오류는 Tcl이 제대로 설치되지 않았을 가능성이 큽니다. Tcl은 Tkinter 라이브러리와 관련이 있으며, pyautogui의 mouseInfo() 함수는 Tkinter를 사용하여 GUI 창을 띄우기 때문에, 이 오류가 발생하는 것 같습니다.

 

아래 명령어를 통해 tk 라이브러리를 직접 설치하고

다시 실행해 보시겠어요??

 

pip install tk

tkpip install tkㄴㅇㅇㄹ

ㅁㄴㅇㄹ

sellytop2님의 프로필 이미지
sellytop2
Questioner

그래도 ㄱㅖ속 똑같은 오류만 뜹니다.. 어떻게 해야할까요ㅠ

startcoding님의 프로필 이미지
startcoding
Instructor

음... 파이썬 삭제 후 재설치하면서

pyautogui를 다시 깔아보는것을 추천 드려요!

sellytop27888's profile image
sellytop27888

asked

Ask a question