This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/02/15 16:30] jypeter |
other:uvcdat:cdat_conda:cdat_8_0_py2 [2019/02/27 16:09] jypeter Many updates |
||
---|---|---|---|
Line 18: | Line 18: | ||
==== Installing Miniconda3 ==== | ==== Installing Miniconda3 ==== | ||
- | We have installed a new version of Miniconda3, by following the existing [[other:uvcdat:conda_notes#installing_miniconda|installing miniconda]] instructions | + | We have installed a new version of Miniconda3 (steps below adapted from the [[other:uvcdat:conda_notes#installing_miniconda|installing miniconda]] instructions) |
- | * Follow the [[https://conda.io/docs/install/quick.html|Quick install]] steps to install Miniconda | + | * Get the [[https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh|Python 3.7 Linux 64-bit (bash installer)]] (unless there is a [[https://conda.io/miniconda.html|more recent version?]]) |
- | * Get the [[https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh|Python 3.7 Linux 64-bit (bash installer)]] (unless there is a [[https://conda.io/miniconda.html|more recent version?]]) | + | * Find some temporary space on Linux or Windows |
- | * ''cd /home/scratch01/jypeter'' (some temporary storage space for the installer) | + | * Linux:''cd /home/scratch01/jypeter'' |
- | * ''wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh'' (67 Mo, 15 Feb 2019) | + | * WSL: ''cd /mnt/h/Scratch/jypeter/'' (assuming that there is a ''H:\Scratch\jypeter'' directory) |
- | * Execute the installer | + | * ''wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh'' (67 Mo, 15 Feb 2019) |
- | * ''bash Miniconda3-latest-Linux-x86_64.sh'' | + | * Execute the installer |
- | * Accept the license | + | * ''bash Miniconda3-latest-Linux-x86_64.sh'' |
- | * Specify an explicit installation path **outside of the home directory**, with enough disk space (more than 3G if you are going to install UV-CDAT and some extra packages), preferably on a disk that is not backed up: ''/home/share/unix_files/cdat/miniconda3'' | + | * Accept the license |
- | * Resulting ''miniconda3'' directory size is 302M\\ <code> >du -sh miniconda3 | + | * Specify an explicit installation path **outside of the home directory**, with enough disk space (more than 3G if you are going to install UV-CDAT and some extra packages), preferably on a disk that is not backed up: |
+ | * Linux: ''/home/share/unix_files/cdat/miniconda3'' | ||
+ | * WSL: installing to a directory that is not in ''/home/'' <wrap hi>does not work</wrap> (e.g. ''/mnt/h/CDAT/miniconda3'',assuming there is a ''H:\CDAT\'' directory, does not work)\\ Need to accept the installation in the default location: ''/home/jypeter/miniconda3'' | ||
+ | |||
+ | * Resulting ''miniconda3'' directory size is 302M\\ <code> >du -sh miniconda3 | ||
302M miniconda3 | 302M miniconda3 | ||
>cd miniconda3 | >cd miniconda3 | ||
Line 45: | Line 49: | ||
92K ssl | 92K ssl | ||
12K x86_64-conda_cos6-linux-gnu</code> | 12K x86_64-conda_cos6-linux-gnu</code> | ||
- | * Accept the automatic update of the //PATH// variable in ''.bashrc'' (note: the installer automatically creates a backup of ''.bashrc'') | + | * Accept the automatic update of the //PATH// variable in ''.bashrc'' (note: the installer automatically creates a backup of ''.bashrc''). This will some extra lines at the end of ''.bashrc'' looking like some of the lines below: |
- | * ''# added by Miniconda3 installer''\\ ''export PATH="/home/share/unix_files/cdat/miniconda3/bin:$PATH"'' | + | * ''# added by Miniconda3 installer''\\ ''export PATH="/home/share/unix_files/cdat/miniconda3/bin:$PATH"'' |
- | * Open a new terminal (if you use bash) or open a new terminal and type ''bash'' | + | * ''# added by Miniconda4.xxx installer''\\ ''[some really fancy bash shell commands]'' |
- | * check if the python from the conda distribution has been correctly installed\\ <code> > bash | + | * Open a new terminal (if you use bash) or open a new terminal and type ''bash'' |
+ | * check if the python from the conda distribution has been correctly installed\\ <code> > bash | ||
$ which python | $ which python | ||
/home/share/unix_files/cdat/miniconda3/bin/python | /home/share/unix_files/cdat/miniconda3/bin/python | ||
$ which conda | $ which conda | ||
/home/share/unix_files/cdat/miniconda3/bin/conda</code> | /home/share/unix_files/cdat/miniconda3/bin/conda</code> | ||
- | * Update and clean the new installation\\ <code>$ conda update --all | + | * Update and clean the new installation\\ <code>$ conda update --all |
$ du -sh /home/share/unix_files/cdat/miniconda3 | $ du -sh /home/share/unix_files/cdat/miniconda3 | ||
515M /home/share/unix_files/cdat/miniconda3 | 515M /home/share/unix_files/cdat/miniconda3 | ||
Line 159: | Line 164: | ||
(cdatm) >which python | (cdatm) >which python | ||
/home/share/unix_files/cdat/miniconda3/envs/cdatm/bin/python</code> | /home/share/unix_files/cdat/miniconda3/envs/cdatm/bin/python</code> | ||
+ | |||
+ | You probably don't want to type the //source// line each time you need to use your conda based python, so you can add a ''source ~jypeter/.conda3_jyp.sh'' line in your ''~/.bashrc'' file, and ''source ~jypeter/.conda3_jyp.csh'' line in your ''~/.cshrc'' file. Then, when you need a specific python environment, just type ''conda activate name_of_the_specific_environment'' | ||
=== Old style initialization === | === Old style initialization === | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | The //old style// notes below are just for reference sake and you can skip them | ||
+ | </WRAP> | ||
+ | |||
Note: this is the **old** ''source activate some_version'' style | Note: this is the **old** ''source activate some_version'' style | ||
Line 205: | Line 217: | ||
==== Installing CDAT 8.0 ==== | ==== Installing CDAT 8.0 ==== | ||
+ | |||
+ | === Python 2.7 version === | ||
<code>$ conda create -n cdat-8.0_py2 -c cdat/label/v80 -c conda-forge -c cdat python=2.7 cdat | <code>$ conda create -n cdat-8.0_py2 -c cdat/label/v80 -c conda-forge -c cdat python=2.7 cdat | ||
Line 233: | Line 247: | ||
2.8G /home/share/unix_files/cdat/miniconda3/envs/cdat-8.0_py2</code> | 2.8G /home/share/unix_files/cdat/miniconda3/envs/cdat-8.0_py2</code> | ||
+ | === Python 3.6 version === | ||
+ | |||
+ | <code>$ conda create -n cdat-8.0_py3 -c cdat/label/v80 -c conda-forge -c cdat python=3.6 cdat</code> | ||
===== Cloning cdat to add specific packages for LSCE ===== | ===== Cloning cdat to add specific packages for LSCE ===== |