Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create anaconda python environment with all packages

I want to create an anaconda python environment with all of the packages that Continuum includes in its default Anaconda installer. Based on some internet search I used the following command:

conda create -n env_full python=3 

However, only handful of packages would be installed. Please see the screen shot.enter image description here

Kindly guide me to use correct commands.

Right now I am trying to do this on a desktop computer, but I would like to apply the same principles to the cluster facility.

like image 999
Neeraj Hanumante Avatar asked Jun 28 '16 04:06

Neeraj Hanumante


People also ask

Does conda install packages for each environment?

To automatically add default packages to each new environment that you create: Open Anaconda Prompt or terminal and run: conda config --add create_default_packages PACKAGENAME1 PACKAGENAME2. Now, you can create new environments and the default packages will be installed in all of them.

How many packages are available in the Base Anaconda environment?

The Anaconda distribution installs the latest stable version of Python along with over 200 packages. You can see the package list for each installation.


2 Answers

Surely you don't mean install all available packages, right? Continuum's default channel alone has 635 of them, and there are countless others on other channels.

I think @cel is right above to assume that you're specifically asking to install all of the packages that Continuum includes in its default Anaconda installer. If that's the case, then the simplest command is this:

conda create -n env_full anaconda 

This will install the latest version of the anaconda package set, as compiled for your default version of Python (the one you used to install Anaconda originally). If you'd like to create an environment with a different version of Python, then just add that to the command line; e.g.

conda create -n env_full anaconda python=2.7 conda create -n env_full anaconda python=3.5 
like image 113
Michael Grant Avatar answered Sep 21 '22 20:09

Michael Grant


Anaconda ships with a root env, this is named as base. You can use this as it is or clone a new environment from it.

if you just want a environment with all the packages for day to day then you can use the base enviornment itself.

you can list the all available conda env on your machine as follows

 conda info --env 

you will see a enviornment name base, activate it to use it

 source activate base 

You can verify all the packages available in the env with following command ( This work with any env created with conda)

 conda list -n base 

As I said above if you want a different env then you can clone base using following command

conda create --name <env_name> --clone base 
like image 25
DevC Avatar answered Sep 21 '22 20:09

DevC