other:uvcdat:cdat_conda:cdat_8_2_1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:uvcdat:cdat_conda:cdat_8_2_1 [2021/03/03 12:40] – [Installing CDAT 8.2.1] jypeter | other:uvcdat:cdat_conda:cdat_8_2_1 [2021/03/08 16:34] – [Installation with Miniconda3] jypeter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== CDAT 8.2.1 installation | + | ====== |
[ [[.: | [ [[.: | ||
Line 11: | Line 11: | ||
===== Using JYP version ===== | ===== Using JYP version ===== | ||
- | If you mostly want to use the CDAT 8.2.1 installed by JYP, just use the following steps and then read the //What should I do now?// section below | + | If you mostly want to use the **python distribution based on CDAT 8.2.1** installed by JYP, just use the following steps and then read the [[# |
* Initialize //conda// with: | * Initialize //conda// with: | ||
Line 23: | Line 23: | ||
* python 3.x: '' | * python 3.x: '' | ||
- | * Type '' | + | * Type '' |
+ | * '' | ||
+ | * e.g. '' | ||
Line 40: | Line 42: | ||
==== You want to replicate this installation on your own server or desktop/ | ==== You want to replicate this installation on your own server or desktop/ | ||
+ | Read the following sections of this web page | ||
+ | |||
+ | There are some slight differences if you want to install this distribution: | ||
+ | * just for you. This is the usual case. Well, if you break something you can always remove everything and start from scratch | ||
+ | * for sharing a stable version with several other people | ||
+ | |||
+ | The notes at the beginning of each section will tell you if you can skip the section if you are just installing for you | ||
===== What's New in CDAT 8.2.1? ===== | ===== What's New in CDAT 8.2.1? ===== | ||
Line 45: | Line 54: | ||
* Full [[https:// | * Full [[https:// | ||
- | Note: this particular CDAT installation at LSCE (and on other machines/ | + | Note: this particular CDAT installation at LSCE (and on other machines/ |
===== Installation with Miniconda3 ===== | ===== Installation with Miniconda3 ===== | ||
- | We assume that Miniconda3 is already installed. Otherwise, follow the the [[other: | + | ==== Installing |
+ | |||
+ | If // | ||
==== Updating conda ==== | ==== Updating conda ==== | ||
- | The conda package itself can be updated (if need be) with\\ '' | + | The conda package itself can be updated (if need be) with\\ '' |
==== Installing CDAT 8.2.1 ==== | ==== Installing CDAT 8.2.1 ==== | ||
Line 94: | Line 105: | ||
The installation line below is based on information from the [[https:// | The installation line below is based on information from the [[https:// | ||
+ | < | ||
+ | bash-4.2$ conda config --env --add channels conda-forge | ||
+ | bash-4.2$ conda config --set channel_priority strict | ||
+ | bash-4.2$ cat .condarc | ||
+ | channels: | ||
+ | - conda-forge | ||
+ | - defaults | ||
+ | $ conda config --describe channel_priority | ||
+ | |||
+ | $ conda create -n cdat-8.2.1_nompi_py3 -c conda-forge -c cdat/ | ||
< | < | ||
Resulting list of installed packages | Resulting list of installed packages | ||
- | * '' | + | * '' |
- | * {{ : | + | * no mpi: {{ : |
+ | * with mpî: {{ : | ||
[[https:// | [[https:// | ||
- | ===== Cloning CDAT before adding specific packages for LSCE ===== | + | ===== Cloning |
<WRAP center round alert 60%> | <WRAP center round alert 60%> | ||
Line 118: | Line 140: | ||
Notes: | Notes: | ||
- | * Why // | + | * Why // |
- | * Carefully working on different python environments (possibly cloned) is safer in a multi-user environment | + | * Carefully working on different python environments (possibly cloned) is safer in a multi-user environment |
* Cloning a full environment uses Linux hard links and requires less disk space than making a real copy | * Cloning a full environment uses Linux hard links and requires less disk space than making a real copy | ||
Line 132: | Line 154: | ||
- | ===== Getting ready for a moving default CDAT ===== | + | ===== Getting ready for a moving default CDAT environment |
<WRAP center round alert 60%> | <WRAP center round alert 60%> | ||
Line 143: | Line 165: | ||
This step could probably be listed at the **end**, especially in a multi-user environment! | This step could probably be listed at the **end**, especially in a multi-user environment! | ||
- | If there is already a '' | + | If there is already a '' |
</ | </ | ||
- | We create a **// | + | We create a **// |
< | < | ||
- | $ ln -s cdatm19_py3 cdatm_py3</ | + | $ ln -s cdatm19_py3 cdatm_py3 |
- | ===== Customizing | + | conda env list |
+ | # conda environments: | ||
+ | # | ||
+ | base * / | ||
+ | cdat-8.2.1_py3 | ||
+ | cdatm19_py3 | ||
+ | cdatm_py3 | ||
+ | |||
+ | $ ls -l / | ||
+ | drwxr-xr-x [...] cdat-8.2.1_py3/ | ||
+ | drwxr-xr-x [...] cdatm19_py3/ | ||
+ | lrwxrwxrwx [...] cdatm_py3 -> cdatm19_py3/ | ||
+ | </ | ||
+ | |||
+ | ===== Customizing CDAT for LSCE ===== | ||
==== A quick test of cdms2 and vcs ==== | ==== A quick test of cdms2 and vcs ==== | ||
Line 160: | Line 196: | ||
==== Downloading cdms2/vcs test data ==== | ==== Downloading cdms2/vcs test data ==== | ||
- | You should download the test data (174M of data...) and use it in the example scripts that you want to distribute, and scripts you write for reporting the errors you find (if any...) | + | You should download the test data (174M of data...) and use it in the example scripts that you want to distribute, and scripts you write for reporting the errors you find (if any...). The downloaded data files will be available in: '' |
< | < | ||
Line 170: | Line 206: | ||
(cdatm19_py3) $ du -sh / | (cdatm19_py3) $ du -sh / | ||
174M / | 174M / | ||
- | </ | + | |
+ | $ python | ||
+ | >>> | ||
+ | >>> | ||
+ | '/ | ||
+ | |||
+ | >>> | ||
+ | [' | ||
==== Packages that have no dependency problems ==== | ==== Packages that have no dependency problems ==== | ||
- | After cloning, we are ready to install some extra packages that may be requested by LSCE users | + | After [[# |
- | * We first try to install together as many packages as possible that don't require other channels than // | + | * We first install together as many packages as possible that don't require other channels than // |
- | * We then install individual extra packages with '' | + | * We use the //dry-run// option of conda in order to check the version (theoretically the latest) and origin (theoretically // |
+ | * conda may take a very long time to report that there are too many conflicts and we have started using [[https:// | ||
+ | * if the dry-run reports too many conflicts or requests too many downgrades, we try to remove some (not really important) packages and check if it works better | ||
+ | * the last resort is too create a new environment with a smaller set of packages if a user really needs a conflicting package | ||
+ | * We later install individual extra packages with '' | ||
- | < | + | === Pre-installation check with the dry-run |
- | #$ conda install --dry-run | + | |
- | # Install... | + | < |
- | $ conda install -n cdatm19_py3 | + | |
- | [...] | + | |
- | # Use a similar install line if you want to install the same packages | + | [... lots of information about what would be done followed by some information about how long it took ...] |
+ | |||
+ | Summary: | ||
+ | |||
+ | Install: 167 packages | ||
+ | Downgrade: 3 packages | ||
+ | |||
+ | Total download: 474 MB | ||
+ | |||
+ | DryRunExit: Dry run. Exiting. | ||
+ | |||
+ | 8.31user 0.51system 0: | ||
+ | |||
+ | === Actual installation === | ||
+ | |||
+ | < | ||
+ | |||
+ | Resulting list of installed packages | ||
+ | * '' | ||
+ | * no mpi: {{ : | ||
+ | |||
+ | === Extra packages installed with pip === | ||
- | List of installed packages: {{ : | ||
- | Packages installed with //pip// | ||
* [[https:// | * [[https:// | ||
* '' | * '' | ||
Line 201: | Line 264: | ||
* '' | * '' | ||
- | The following packages have no dependency problems and were installed | + | === Packages with no dependency problems and were added (or updated) later === |
* [[https:// | * [[https:// |
other/uvcdat/cdat_conda/cdat_8_2_1.txt · Last modified: 2024/07/02 12:44 by jypeter