python - 如何在vs代码中激活conda环境
问题描述
我使用 miniconda 创建了一个虚拟环境。我正在使用带有 Mask rcnn 的 Visual Studio Code 进行训练,但我无法在 Visual Studio Code 中启动虚拟环境,我收到错误消息。Sevinirim 如果你帮助在此处输入图像描述
解决方案
按 ctrl+shift+P 打开 VS Code 的命令面板。
在搜索框中输入解释器。并选择 Python: Select Interpreter 选项。您应该会看到所有可用(显示 conda 和虚拟环境)python 环境的列表。您还应该在那里看到您最近创建的 myenv 环境。切换并选择您的环境,一切顺利。
推荐阅读
- mysql - MySQL XDevAPI 因“队列为空”而崩溃
- azure - LUIS 管理 - “包括所有预测的意图分数”将被关闭
- reactjs - 如何在反应的材料-UI选择框中设置默认值?
- javascript - 如何在完整日历中自定义具有不同日期和不同时间的周末日期
- email - 我如何在本机反应中发送带有附件的电子邮件(使用我自己的 SMTP 服务器)?
- angular - 如何在 Angular 6 中使用 rxjs fromEvent 定位 HTML 元素
- java - Java 8 - 就地映射数组/集合
- java - JHipster 5 和 Spring Boot 在启动时不加载 data.sql
- python-requests - 接收 404 响应表单 requests.get
- php - 如何在php中循环遍历具有共同模式的文件的多个块