# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
加上cv2
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=cv2
这里是MS V代码中settings.json文件的代码片段
这是派林特寄来的。可以使用以下命令在项目的根目录中生成pylint配置文件: (如果您在同一个团队或同一回购协议的不同计算机上工作,我觉得这很有帮助)
在生成的.pylintrc文件的开头,您将看到
加上cv2
保存文件。 绒布错误应该消失。
是的,因为扩展尚未安装。 设置这个:extension pkg whitelist=cv2,就可以了。 但是,它可能检测不到cv2中实现的功能或模块
相关问题 更多 >
编程相关推荐