【问题标题】:'Exit' command in VS Code Terminal and pipenvVS Code 终端和 pipenv 中的“退出”命令
【发布时间】:2020-03-30 13:44:01
【问题描述】:

在 VS Code 终端中,'exit' 命令或'ctrl + d' 组合直接关闭终端,而我只想停用 pipenv,有没有办法做到这一点?

【问题讨论】:

  • 退出pipenv的唯一方法是创建一个新终端(从顶部栏菜单),然后删除旧终端。

标签: visual-studio-code command exit pipenv


【解决方案1】:

以下命令帮助我退出了 vscode 中的 pipenv shell:

deactivate

【讨论】:

  • 你能补充一点解释吗?停用有什么作用?我可以参考的任何文档或链接? How to Answer。亲切的问候。
【解决方案2】:

我尝试了deactivateexit,但它们都不适合我。

使用shift+cmd+P 可以轻松更改环境和解释器。请参考VS code documentation

【讨论】:

    【解决方案3】:

    如果你使用pipenv shell进入virtualenv,使用exit命令退出virtualenv。

    请不要使用deactivate,因为它的行为会有所不同[由ButtaKnife]解释

    【讨论】:

      猜你喜欢
      • 2021-06-29
      • 2021-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-11
      • 2015-07-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多