VSCode PyQt5 Pylint报错消除 No name 'Qt' in module 'PyQt5
Tofloor
poster avatar
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 Favorite View the author
All Replies
avatar
Hello
deepin
2020-08-10 22:17
#1
好,我最近刚遇到这个问题。。。。
Reply View the author