How-To: Using Anaconda - Deactivate Virtual Conda Environment via Command Line Interface

Question

How do I deactivate a virtual conda environment from the Command Line?

 

Answer

Note:  To activate an environment from the command line, see "How-To: Using Anaconda - Activate a Virtual Conda Environment via Command Line Interface"

1. Deactivate current active conda environment from the Anaconda Prompt or Terminal command line (CLI).

a. Enter "conda deactivate" to deactivate environment.

Example environment: venv_31212

command prompt window in vertenv_3_1212 virtual environment with "conda deactivate" as an example

Print Article

Related Articles (9)

Activate a Conda Environment in the command line interface in Windows.
Create a Conda Environment from a YAML formatted file via Command Line Interface .
Create a Conda Environment in the command line interface in Windows.
Open Windows Anaconda Prompt and MacOS Terminal Command Line Interface in a Virtual Conda Environment
A central guide for researchers to build stable and high-performance coding environments using the Conda ecosystem. It brings together best practices—such as choosing the right distribution and using "blueprints" to share work—to help you avoid technical conflicts and ensure your research can be perfectly recreated by others. By following these strategies, you can protect your productivity and make your software projects both portable and reliable.
Think of Conda as a way to create separate, private "workspaces" on your computer for different projects so their software settings don't get mixed up or cause errors. While other tools only handle one coding language, Conda is a "heavy hitter" that can manage almost any software component, making it the top choice for complex fields like Data Science and AI. By using these isolated spaces, you keep your computer stable and make it easy to share your exact setup with others.
Index of Miniconda How-To Articles for Virtual Conda Environments