1

I know how to add single packages and I know that the conda create command supports adding a new environment with all anaconda packages installed.

But how can I add all anaconda packages to an existing environment?

Telcrome
  • 361
  • 2
  • 14
  • Possible duplicate of [Install packages into existing conda environment specified in environment.yml](https://stackoverflow.com/questions/45510430/install-packages-into-existing-conda-environment-specified-in-environment-yml) – darthbith Dec 12 '18 at 14:48

1 Answers1

1

I was able to solve the problem as following:

  1. Create a helper env with anaconda: conda create -n env_name anaconda
  2. Activate that env conda activate env_name
  3. Export packages into specification file: conda list --explicit > spec-file.txt
  4. Activate the target environment: activate target_env_name
  5. Import that specification file: conda install --file spec-file.txt
Telcrome
  • 361
  • 2
  • 14