/
Reproducibility and Sharing
Reproducibility and Sharing
Goal: Introduce how conda environments can be reproduced and shared.
Based on Managing Environments.
In the following examples, we assume you already have a miniconda3
module already loaded.
Clone an Environment
Existing Conda environments can be cloned (essentially copied).
[]$ conda create --help
...
options:
...
--clone ENV Create a new environment as a copy of an existing local environment.
...
Example
[]$ conda create -p py_env2 --clone py_env
Retrieving notices: ...working... done
Source: /home/<username>/.conda/envs/py_env
Destination: /cluster/medbow/project/<project-name>/<username>/software/py_env2
Packages: 39
Files: 1
...
#
# To activate this environment, use
# $ conda activate /cluster/medbow/project/<project-name>/<username>/software/py_env2
Notice: The source (environment being cloned) and the destination (new cloned environment) are listed.
In the above, we are using the -p
option so the destination is within the current working directory, and cloning from an existing environment that was created within the default environment location - so only its name (not absolute path) is required.
Using Cloned Environment
Conda env command
Export an Environment
Import an Environment
, multiple selections available,
Related content
Example 01: Python, Numpy and Pandas Environment
Example 01: Python, Numpy and Pandas Environment
More like this
Conda Configuration and Environments
Conda Configuration and Environments
More like this
Example 03: Applications: SLiM
Example 03: Applications: SLiM
More like this
What is Conda? Using Miniconda3 on the Cluster
What is Conda? Using Miniconda3 on the Cluster
Read with this
Conda and Pip Environments and Reproducibility
Conda and Pip Environments and Reproducibility
More like this
Pip Install within a Conda Environment
Pip Install within a Conda Environment
Read with this