python – How to cretae a conda environment with basic libraries (numpy, pandas, scipy, matplotlib) pre-installled?

Easiest way is to use command :

conda create -n env_full anaconda

It will install all packages that Continuum includes

Second option is just listing packages you want to preinstall when creating env eg:

conda create -n new_env python =3.11 pandas scipy matplotlib

Remember you can always choose what distribution of package will be installed, simply by adding version of package like:

conda create -n new_env python =3.11 pandas=1.5, scipy=1.9.3

Adttionaly you can paste file with packages you want to be downloaded when creating new env with method:

--file 'dir to text file with packages'

You can read about options of cretaing envs in official docs:
docs.conda.io/projects/conda/en/latest/commands/create.html

Read more here: Source link