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

Question

How do I activate a virtual conda environment from the command line interface?

 

Answer

Note:  To open an Anaconda Prompt in Windows or the Terminal in MacOS, see "How-To: Using Anaconda -  Launch a Virtual Conda Environment via Command Line Interface

1. From the Anaconda Prompt or Terminal command line (CLI) in the base environment, enter "conda info --envs" to list the current environments.

 

command prompt window with "conda info --envs" as an example

 

2. Enter "conda activate <environment_name>" to activate environment.

Example environment:  venv_3_13

command prompt window with "conda activate venv_3_13" as an example

 

 

Print Article

Related Articles (10)

Install Miniconda as user without administrator permissions in Windows.
Install Miniconda as user without administrator permissions on a Mac.
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