Azad Rasul
SmartRS

SmartRS

3- Create environments and install packages

Azad Rasul's photo
Azad Rasul

Published on Jun 26, 2021

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Click on start in Microsoft. Then, select: Anaconda Prompt (miniconda 3).

image.png

Your miniconda opened with the base environment.

List of commands in conda available here

To show packages already installed into the environment we can use:

conda list

image.png To show environments of miniconda use:

conda env list

The output is:

image.png

Create new environment:

In this learning series, we create and use a new environment "da35" with Python version 3.5:

conda create --name da35 python=3.5

Tip:

Not all Python libraries available for all Python versions. We prefer Python 3.5 for data analysis so we named it da35.

Go to your newly created environment "da35":

conda activate da35

Tip:

(Every time when you start working inside this environment you have to activate it because libraries you installed inside it not available to base and other environments.)

Install packages:

We have some commands to install libraries such as "conda", "pip".

Tip:

(Before installing packages, you have to activate the environment that you like the packages install within.)

For instance, to install NumPy (scientific computing) and seaborn (statistical data visualization) packages we use:

conda install numpy
pip install seaborn
 
Share this
Proudly part of