Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正确安装了 Pyautogui,我可以从 Python 3.5 导入它,但不能从 IDLE Python 3.5.2 中的脚本导入
在 Shell 上找不到模块 pyautogui
我无法回答为什么会出现错误,但我可能能够解决您的问题 在您的 Shell 上运行此代码:
from subprocess import * from sys import * call([executable, "-m", "pip", "install", "pyautogui"])
希望它有所帮助:|