'Exit' command in VS Code Terminal and pipenv

Viewed 2599

While in the VS Code Terminal, the 'exit' command or 'ctrl + d' combination closes the terminal directly, whereas I just want to deactive pipenv, is there a way to do this?

3 Answers

The following command helped me quit pipenv shell in vscode:

deactivate

I tried both deactivate and exit, but none of them works for me.

Environment and interpreters are easily changed with shift+cmd+P. Please, refer to VS code documentation.

If you use pipenv shell to enter virtualenv, use exit command to quit the virtualenv.

Please do not use deactivate, because it will behaved differently [explained by ButtaKnife]

Related