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

Question

How do I create a virtual conda environment from the Anaconda Prompt command line interface (CLI) in Windows and Mac?

 

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 command line (CLI) in the base environment, enter "conda create -n venv_3_13 python=3.13to create environment.

Example environment: venv_3_13 

command prompt window with "conda create -n venv_3_13 python=3.13 anaconda" as an example  

A prompt to proceed will be displayed and require "y". A new environment is then created.

prompt to proceed  

 

2.   Enter "conda info --envs" to list conda environments. New example environment is listed.

Example environment: venv_3_13

Anaconda Prompt window with "conda info --envs" command and results.  

 

Print Article

Related Articles (9)

Install Miniconda as user without administrator permissions in Windows.
Activate a Conda Environment in the command line interface in Windows.
Create a Conda Environment from a YAML formatted file via Command Line Interface .
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