VS 代码:python 中没有站点包模块的属性?

VS Code: There is no attributes for site-packges modules in python?

伙计们,当我通过这个 pip install wxpython 安装 wxpython 时,当我返回到 VS Code 中的 python 文件中导入 wx 时,已经安装的模块对面没有选项菜单模块带有 python,例如:

但是当我想在 wxpython 中显示这个菜单时,我没有它?? :

帮帮我 任何帮助都会记在心里♥

在VSCode中,自动补全的提示功能由Python扩展和语言服务提供,使用不同的语言服务时代码提示的内容不同。以下是我使用三种不同Python语言服务时的情况:

  1. "python.languageServer":"Pylance",(在“settings.json”文件中)

  2. "python.languageServer":"Microsoft",

  3. "python.languageServer":"Jedi",

建议您尝试重新加载VSCode(F1,Developer: Reload Window)并等待python语言服务加载,然后输入代码即可使用代码提示功能获得更好的使用效果