3- Create environments and install packages
Click on start in Microsoft. Then, select: Anaconda Prompt (miniconda 3).
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:
To show environments of miniconda use:
conda env list
The output is:
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
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
(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.)
We have some commands to install libraries such as "conda", "pip".
(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