Both sides previous revisionPrevious revision | |
conda [2020/07/17 13:32] – [Installing packages] jansen | conda [2020/07/17 13:35] (current) – [Creating an environment] jansen |
---|
Other bits of setup can be done through the ''conda config'' commands, see ''conda config --help'' for details. It is also possible to edit the ''$HOME/.condarc'' directly if you know what settings you want (eg by looking them up online). | Other bits of setup can be done through the ''conda config'' commands, see ''conda config --help'' for details. It is also possible to edit the ''$HOME/.condarc'' directly if you know what settings you want (eg by looking them up online). |
===== Creating an environment ===== | ===== Creating an environment ===== |
To create an environment called ''TEST'', you run | One conda install can manage several environments, which are independent (except when set to inherit from another environment). The original install creates an environment ''base'', but it is best to create separate environments before using and modifying anything. |
| To create an environment called ''TEST'', you run: |
| |
conda create --name TEST | conda create --name TEST |
For more information, see the Anaconda websiete and output of ''conda create --help'' | For more information, see the Anaconda websiete and output of ''conda create --help'' |
| |
| Once created, you activate the environment using ''conda activate NAME'' |
===== Installing packages ===== | ===== Installing packages ===== |
Install a package using ''conda install packagename'', optionally with a version as in ''conda install python==3.7'' to make sure that exact version gets installed, if available. | Install a package using ''conda install packagename'', optionally with a version as in ''conda install python==3.7'' to make sure that exact version gets installed, if available. |