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?
I was able to solve the problem as following:
conda create -n env_name anaconda
conda activate env_name
conda list --explicit > spec-file.txt
activate target_env_name
conda install --file spec-file.txt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.