User Tools

Site Tools


conda

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
conda [2020/07/17 13:32]
jansen [Installing packages]
conda [2020/07/17 13:35] (current)
jansen [Creating an environment]
Line 23: Line 23:
 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
Line 32: Line 33:
 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. ​
conda.txt · Last modified: 2020/07/17 13:35 by jansen