How to leave/exit/deactivate a Python virtualenv
Deactivating a Python virtual environment is a simple but important task when you're done working in an isolated environment and want to return to your system’s global Python environment. To deactivate a virtualenv, you simply run:deactivate That's it — no path, no arguments. Once you type deactivate in your terminal…
Answered May 20, 2025 · 11.7K Views Read answer →