python - Conda 环境未显示在 VS Code 中

标签 python visual-studio-code anaconda conda miniconda

我在 Windows 10 上安装了 miniconda 并创建了一个环境(我遵循了本指南:https://www.notion.so/shashankkalanithi/Setting-Up-Conda-Environment-ba83f7f019ea44b9af37588eed419eb9)。但是,当我打开 VS Code 时,我在内核列表中没有看到该环境 python interpeter。列表中只有一个解释器:~\Miniconda3\python.exe
我怎样才能解决这个问题?

最佳答案

您可以尝试遵循以下方法
vscode - Create a conda environment

Additional notes: ...To ensure the environment is set up well from a shell perspective, one option is to use an Anaconda prompt with the activated environment to launch VS Code using the code . command. At that point you just need to select the interpreter using the Command Palette or by clicking on the status bar.

关于python - Conda 环境未显示在 VS Code 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68717327/

相关文章:

python - 默认参数在 python 中是如何工作的

python - 更换双管||在 Pandas 或 Python 中

java - 如何在VS Code中设置JAVA环境变量

python - 使用 Anaconda 安装 MySQLdb

cmd - cmd开头的"The system cannot find the path specified."

python Django ORM组并订购查询集

php - 在查询字符串中注入(inject)变量时,Select 返回空结果

python - 如何配置 Visual Studio Code 以在 virtualenv 中调试 Django 应用程序?

javascript - 如何在 Mac OS X 上的新 Visual Studio Code 中编译 TypeScript 文件

python - tensorflow /keras神经网络中的过拟合和数据泄漏