我在 Windows 7 上使用 Python 2.7。我使用 pycharm 和 IDLE。我正在尝试 pyautogui 进行一些自动鼠标移动,但程序返回未定义的 puautogui。我在网上读到 pyautogui 在 windows 中不需要任何额外的包。
我在 IDLE 中输入了 import pyautogui,结果出现了错误。你能帮忙吗?
Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pyautogui
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import pyautogui
ImportError: No module named pyautogui
>>>