[Share Experiences] 改一参数解决No module named 'xxx'错误(deepin+VS CODE+PySide6)
Tofloor
poster avatar
deepin
2023-07-06 07:12
Author

版本如下:

deepin20.9,

python3.10,

vs code 1.79.2

如果使用vs code 调试pyside6代码时出现:

ModuleNotFoundError: No module named 'xxx' 错误,

可以这样解决:

在python设置的Default Interpreter Path中加上”python3.10”,

image.png

如果找到了,就不用往下看了!找不到的(像我这种小白刚开始真找不到)往下看,

具体方法如下:

管理(左下角)--设置--扩展下面找到python--右侧面板找到Default Interpreter Path,将下面的值改为python3.10
image.png

image.png

image.png

image.png

自己记录下!如果能帮上你,那是我的荣幸!

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-06 07:28
#1

like

Reply View the author
ThinKinG
deepin testing team
2023-07-07 21:16
#2

like

大佬教学!

Reply View the author
deepin
2023-07-08 04:36
#3
ThinKinG

like

大佬教学!

纯小白,都是自己遇到的问题,找了很多地方才,费了很多事,才找到解决办法,记录下。感谢支持!

Reply View the author