How to create new environment in Miniconda

Melika
1 min readNov 17, 2022

--

Hi! Hope you’re in a good mood today

Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others.

To make a new conda environment in Miniconda, just follow this 5 steps:

Step 1: first things first! we need to have Miniconda installed in our system, if you haven’t, you can download and install it from here

Step 2: open Miniconda prompt

Step 3: to create new environment, type the following command:

conda create -n env_name python=3.9

After -n is where we specify the environment name. This is followed by the version of python we want to install.

Step 4: to use this new environment we need to activate it by the following command:

for windows:

conda activate env_name

for mac:

source activate env_name

and to install any packages in this new environment use the following command:

conda install pkg_name

Step 5: enjoy!

--

--

Melika
Melika

Written by Melika

computer engineer, bookworm. Love to learn, create and help! I write about various things, from AI, motivation and … who knows what’s next :)

No responses yet