【发布时间】:2020-12-02 04:08:50
【问题描述】:
Intellisense: not working with conda (above), working fine when normal Python (below)
如上所示,当 Conda Environment 设置为 Python 解释器时,Intellisense 在 VS Code 中不起作用,它只是保持“正在加载...”。当设置了普通的 Python 解释器(安装 Python 扩展时出现)时,Intellisense 工作正常。在这两种环境下运行或调试文件都没有问题,唯一的问题是 Conda 环境中的 Intellisense。
我至少尝试过以下事情但没有成功。
- 多次重启 VS Code
- 卸载并重新安装 Anaconda 扩展包(安装 Python 扩展)
- 按照How to enable intellisense for python in Visual Studio Code with anaconda3? 中的建议运行 Python “Build Workspace Symbols”
- 我也试过命令conda init powershell
- 按照vscode IntelliSense / code completion doesn't work when I am not in base conda environment 中的建议从 Anaconda Prompt 打开 VS Code
系统信息:
版本:1.47.3(用户设置)
提交:91899dcef7b8110878ea59626991a18c8a6a1b3e
日期:2020-07-23T13:12:49.994Z
电子:7.3.2
铬:78.0.3904.130
Node.js:12.8.1
V8:7.8.279.23-electron.0
操作系统:Windows_NT x64 10.0.16299
【问题讨论】:
标签: python visual-studio-code conda intellisense