User Tools

Site Tools


other:uvcdat:cdat_conda:miniconda3_install

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:uvcdat:cdat_conda:miniconda3_install [2021/03/08 20:59]
jypeter Added the mamba section
other:uvcdat:cdat_conda:miniconda3_install [2021/03/09 10:40]
jypeter [Changing the .condarc file]
Line 110: Line 110:
 ===== Fine-tuning conda ===== ===== Fine-tuning conda =====
  
-conda will probably work fine with the default settings, but we intend to create complex environments and it is better ​to use some specific settings+conda will probably work fine with the default settings ​for creating new environments with just one package (e.g. [[https://​github.com/​NOAA-PMEL/​PyFerret/#​anaconda-installation---linux-os-x-and-windows-10bash|just PyFerret]]). 
 + 
 +We intend to **create complex environments** (combining lots of packages, with complex dependencies) ​and it is highly recommended ​to use the specific settings ​described in this section 
 + 
 +==== Getting conda configuration information ====
  
   * [[https://​docs.conda.io/​projects/​conda/​en/​latest/​commands/​config.html|conda config]] documentation   * [[https://​docs.conda.io/​projects/​conda/​en/​latest/​commands/​config.html|conda config]] documentation
Line 120: Line 124:
 Most of the packages we will install will be provided by the //​conda-forge//​ channel (''​-c conda-forge''​ option). The installation steps will also add dependencies that will theoretically come from //​conda-forge//,​ but could also come from the //​defaults//​ channel. Most of the packages we will install will be provided by the //​conda-forge//​ channel (''​-c conda-forge''​ option). The installation steps will also add dependencies that will theoretically come from //​conda-forge//,​ but could also come from the //​defaults//​ channel.
  
-The following will **make sure that we only get packages from //​conda-forge//​** (see [[https://​docs.conda.io/​projects/​conda/​en/​latest/​user-guide/​tasks/​manage-channels.html|Managing channels]] and [[https://​conda-forge.org/​docs/​user/​tipsandtricks.html#​how-to-fix-it|Using multiple channels => How to fix it]])+The following will **make sure that we only get packages from //​conda-forge//​** ​unless the requested packages really don't exist on //​conda-forge// ​(see [[https://​docs.conda.io/​projects/​conda/​en/​latest/​user-guide/​tasks/​manage-channels.html|Managing channels]] and [[https://​conda-forge.org/​docs/​user/​tipsandtricks.html#​how-to-fix-it|Using multiple channels => How to fix it]])
  
 <​code>​$ conda config --add channels conda-forge <​code>​$ conda config --add channels conda-forge
 $ conda config --set channel_priority strict $ conda config --set channel_priority strict
-$ cat .condarc+$ cat ~/.condarc
 channels: channels:
   - conda-forge   - conda-forge
other/uvcdat/cdat_conda/miniconda3_install.txt · Last modified: 2024/07/09 15:54 by jypeter