5. How to use Conda

If you want to set up a new Anaconda environment for your project using the command line, then use the the “Conda“.

conda create

So, for example, if we want to create an environment with Python with a name let’s say: “firstenv“, the command will be:

conda create -n firstenv

Now, we already have the Anaconda Environment, to install any package in that, the command syntax will be like this:


conda install -n firstenv packag-name

Let’s say you want to install Pythion and NumPy in your environment-

conda install -n firstenv python numpy

In this way, we can install whatever available packages we want. Also to activate the environment and start working with it.

conda activate firstenv

To deactivate

conda deactivate

6. How to deactivate Conda base enviornment

If you don’t want the Conda ‘s base environment to be started automatically on start up in your command terminal of Ubuntu, then we can deactivate that, just run the given command:

conda config --set auto_activate_base false