Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
VSCode PyQt5 Pylint报错消除 No name 'Qt' in module 'PyQt5
Experiences and Insight
540
views ·
1
replies ·
To
floor
Go
ted2019
deepin
2020-08-10 22:05
Author
Pylint默认不支持自动配置第三方模块,pyqt5是C++写的第三方模块。
解决方法,如下配置:
1. 找到Pylint args配置,进入编辑:
2. 添加配置如下信息:
[color=rgb(0, 153, 0) !important]
"python.linting.pylintArgs"
: [
[color=rgb(0, 153, 0) !important]
"--extension-pkg-whitelist=PyQt5"
Reply
Like 0
Favorite
View the author
All Replies
Hello
deepin
2020-08-10 22:17
#1
好,我最近刚遇到这个问题。。。。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Canon Printer install issues
Popular Events
More
1. 找到Pylint args配置,进入编辑:
2. 添加配置如下信息:
[color=rgb(0, 153, 0) !important]"python.linting.pylintArgs": [ [color=rgb(0, 153, 0) !important]"--extension-pkg-whitelist=PyQt5"