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?
Asked
Active
Viewed 6,293 times
3
-
The only way to exit `pipenv` is to make a new Terminal (from the top bar menu) and then delete the old terminal. – Shayan Nov 10 '21 at 14:35
3 Answers
5
The following command helped me quit pipenv shell in vscode:
deactivate

user12687104
- 83
- 1
- 6
-
1Can you please add a bit more explanation. What does deactivate do? Any docs or links that I can reference? [How to Answer](https://stackoverflow.com/help/how-to-answer). Kind Regards. – Elletlar Nov 13 '20 at 12:08
1
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.

Nicko
- 51
- 7
0
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]

bani
- 106
- 4