我让 Anaconda 在我的系统上工作,而 VsCode 也在工作,但是如何让 VsCode 在运行我的 python 脚本时激活特定环境?
最佳答案
简单地使用
- shift + cmd + P
- 搜索选择口译员
- 选择它,它将显示通过 conda 和其他 python 版本创建的虚拟环境列表
- 选择环境,您就可以开始了。
引用“选择并激活环境”docs
Selecting an interpreter from the list adds an entry for
python.pythonPath
with
the path to the interpreter inside your Workspace Settings.
关于python - 在 VsCode 中激活 Anaconda 环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43351596/