pyautogui 错误

Error in pyautogui

我在 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
>>> 

要安装 PyAutoGUI,请从 PyPI 和依赖项安装 pyautogui 包。

在 Windows 上 Python 2.7,这是:

C:\Python27\python.exe -m pip install pyautogui

意思是解释器找不到pyautogui...你确定安装了吗....

如果没有…… 第一类 pip uninstall PyautoGUI 然后 请在 CMD 或 Powershell 中输入 pip install PyautoGUI

有关详细信息,请访问: https://pypi.org/project/PyAutoGUI/