VS代码中找不到的模块。我使用PIP安装了Pyautogui和其他一些模块,但我的代码不运行

发布于 2025-02-03 03:05:24 字数 262 浏览 2 评论 0原文

我收到消息:

file“ c:\ users \ usesa \ desktop \ python_not_wroking \ nothing.py”,第1行,in 导入Pyautogui作为PE ModulenotFoundError:没有名为“ Pyautogui''

的模块

我设置了Venv,并将解释器更改为Venv中的Python.exe。问题是它在VS代码之前没有运行,即使没有VENV,我知道我正确安装了所有内容

I get the message :

File "c:\Users\oussa\Desktop\python_not_wroking\nothing.py", line 1, in
import pyautogui as pe
ModuleNotFoundError: No module named 'pyautogui'

I set up venv and changed the interpreter to the python.exe in venv. The problem is that it did not run before in VS code, even without venv and I know I installed everything correctly because everything runs fine when I run my code through IDLE in the desktop

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文