首页 > 解决方案 > ImportError:使用 anaconda 安装后没有名为 pyautogui 的模块

问题描述

编辑2:它需要管理员权限吗?在 Windows 上安装 anaconda 并尝试安装这些命令后:

>>pip install pyautogui
>>conda install -c conda-forge pyautogui
>>conda install -c conda-forge/label/cf201901 pyautogui
>>conda install -c conda-forge/label/cf202003 pyautogui

我收到一个 ImportError

>>> import pyautogui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyautogui'

pyautogui 命令也不起作用。在 Windows 10 上安装 Windows 10 的 thale Anaconda 安装过程中没有错误。

标签: pythonanacondaimporterrorpyautoguiconda-forge

解决方案


在 anaconda 控制台上试试这个:

  pip install -U pyautogui

并确保它已安装。


推荐阅读