【问题标题】:How to get the name of the virtual environment to show up in VS code terminal如何获取虚拟环境的名称以显示在 VS 代码终端中
【发布时间】:2021-05-07 10:58:03
【问题描述】:

当我在带有 Powershell 的集成终端中运行 python 代码时,虚拟环境的名称不显示。一切正常,但并未表明它正在使用指定的 Conda 环境。请问这个怎么解决? 我试过了

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

但是没有用。

【问题讨论】:

    标签: powershell visual-studio-code terminal virtual-environment anaconda3


    【解决方案1】:

    只需要conda init

    source

    【讨论】:

      猜你喜欢
      • 2021-06-23
      • 2023-03-26
      • 1970-01-01
      • 2021-09-17
      • 1970-01-01
      • 2018-11-28
      • 2020-07-15
      • 2021-12-16
      • 2022-08-18
      相关资源
      最近更新 更多