Miniconda and Conda Virtual Environment

This post covers miniconda, including its installation and managing conda virtual environments. After using the Anaconda suite for quite some time, I found it cumbersome, with many unused tools, a large number of default packages, and a substantial volume size. Consequently, I decided to uninstall Anaconda and switch to the more lightweight miniconda distribution.

For miniconda installation link: miniconda.

Creating and Managing Virtual Environment

1. Open Anaconda Terminal
2. Create new virtual environment and install specific python verison
into this virtual environment

3. Typing “conda env list” to check the virtual environments just created

4. Switch or Activate the virtual environment just create

1
>> conda activate myNewVitrualEnv

Then you will see the front in () changed to your just created virtual environment name

5. Then install the package you needed to work in the project

1
>> conda install jupyter pandas numpy

6. Then cd into any folder you want project to be placed at To launch Jupyter Notebook

1
>> (myNewVitrualEnv) D:\Dataproject\financial_data_proj>jupyter notebook

7. To remove a virtual environment:

1
>> (base) conda remove --name myNewVitrualEnv --all