User Tools

Site Tools


other:uvcdat:cdat_conda:cdat_8_0_py2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
other:uvcdat:cdat_conda:cdat_8_0_py2 [2021/02/26 19:31] – Improved... jypeterother:uvcdat:cdat_conda:cdat_8_0_py2 [2021/02/27 14:55] (current) – [Installing Miniconda3] jypeter
Line 28: Line 28:
       * e.g. WSL, assuming that there is a ''C:\Scratch\<your_login>'' directory:\\ ''cd /mnt/c/Scratch/<your_login>''       * e.g. WSL, assuming that there is a ''C:\Scratch\<your_login>'' directory:\\ ''cd /mnt/c/Scratch/<your_login>''
     * Use ''wget'' to download the installer:\\ ''wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh'' (90 Mb, 26 Feb 2021)     * Use ''wget'' to download the installer:\\ ''wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh'' (90 Mb, 26 Feb 2021)
 +
   * Execute the installer   * Execute the installer
     * ''bash Miniconda3-latest-Linux-x86_64.sh''     * ''bash Miniconda3-latest-Linux-x86_64.sh''
       * Accept the license       * Accept the license
 +      * Note: at the end of the installation (next step), **answer //no// to the following question**, so that the installer does not change your existing shell initialization files!\\ ''Do you wish the installer to initialize Miniconda3 by running conda init? [yes|no]'' => **NO**
       * Specify an explicit installation path **outside of your //home// directory**, with enough disk space (more than 3 Gb if you are going to install CDAT and some extra packages), preferably on a disk that is not backed up:       * Specify an explicit installation path **outside of your //home// directory**, with enough disk space (more than 3 Gb if you are going to install CDAT and some extra packages), preferably on a disk that is not backed up:
         * Installations by //JYP//:         * Installations by //JYP//:
           * Linux at LSCE: ''/home/share/unix_files/cdat/miniconda3'', or another subdirectory of ''/home/share/unix_files/cdat/''            * Linux at LSCE: ''/home/share/unix_files/cdat/miniconda3'', or another subdirectory of ''/home/share/unix_files/cdat/'' 
-          * Linux on ciclad: ''/data/jypmce/cdat/miniconda3'', or another subdirectory of ''/data/jypmce/cdat/'' +          * Linux on ciclad: ''/data/jypmce/cdat/miniconda3'', or another sub-directory of ''/data/jypmce/cdat/'' 
-        * 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'' +        * 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)\\ You need to accept the installation in the default location: ''/home/<your_login>/miniconda3'' 
-        Resulting ''miniconda3'' directory size is 302M\\ <code> >du -sh miniconda3 +      The resulting ''miniconda3'' directory size is 342M\\ <code> > du -sh miniconda3 
-302M    miniconda3 +342M    miniconda3 
- >cd miniconda3 + 
-/home/share/unix_files/cdat/miniconda3 + > cd miniconda3 
- >du -sh * + 
-6.3M    bin + > du -sh * 
-2.0M    compiler_compat +20M     bin 
-524K    conda-meta +0       compiler_compat 
-4.0K    envs +4.0K    condabin 
-28K     etc +684K    conda-meta 
-5.2M    include +0       envs 
-146M    lib +16K     etc 
-8.0K    LICENSE.txt +5.5M    include 
-142M    pkgs +4.0K    info 
-928K    share +198M    lib 
-92K     ssl +12K     LICENSE.txt 
-12K     x86_64-conda_cos6-linux-gnu</code> +114M    pkgs 
-      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'' used by the //old-style conda initialization// (we will later switch to the //new-style//). The added lines should look like+604K    share 
-        * ''# added by Miniconda3 installer''\\ ''export PATH="/home/share/unix_files/cdat/miniconda3/bin:$PATH"'' +4.0K    shell 
-        ''# added by Miniconda4.xxx installer''\\ ''[some really fancy bash shell commands]'' +0       ssl 
-  * Remove the installer: ''rm Miniconda3-latest-Linux-x86_64.sh'' +0       x86_64-conda_cos6-linux-gnu</code> 
-  * 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+  Initialize the newly installed conda environment
 +    bash shell: ''source <installation_path>/miniconda3/etc/profile.d/conda.sh'' 
 +    tcsh shell: ''source <installation_path>/miniconda3/etc/profile.d/conda.csh'' 
 + 
 +  * Check if you can use the ''conda'' command, and use it to initialize the //base// environment 
 +    * <code>$ which conda 
 +<installation_path>/miniconda3/condabin/conda
 $ which python $ which python
-/home/share/unix_files/cdat/miniconda3/bin/python +/usr/bin/python 
-which conda +$ conda activate 
-/home/share/unix_files/cdat/miniconda3/bin/conda</code> +(base) $ which python 
-    * Update and clean the new installation\\ <code>$ conda update --all +<installation_path>/miniconda3/bin/python</code> 
-$ du -sh /home/share/unix_files/cdat/miniconda3 +  * Update the new installation 
-515M    /home/share/unix_files/cdat/miniconda3 +    * <code>$ conda update --all
-$ conda clean --all +
-$ du -sh /home/share/unix_files/cdat/miniconda3 +
-270M    /home/share/unix_files/cdat/miniconda3 +
-$ conda list +
-# packages in environment at /home/share/unix_files/cdat/miniconda3: +
-+
-# Name                    Version                   Build  Channel +
-[...] +
-python                    3.7.1                h0371630_3 +
-readline                  7.0                  h7b6447c_5 +
-requests                  2.20.0                   py37_0+
 [...]</code> [...]</code>
 +    * During the update, the ''miniconda3'' directory size goes from 432 Mb to 581 Mb. This directory will keep on growing, which is the reason why you should put it on a (preferably non backed up) disk where you have //enough// space
 +
 +  * Make sure we have the latest ''conda'' (just in case we did not get it with the //update//)\\ ''conda update -n base -c defaults conda''
 +
 +  * Remove the installer:\\ ''rm Miniconda3-latest-Linux-x86_64.sh''
  
 ==== Post-Miniconda3 installation ==== ==== Post-Miniconda3 installation ====
other/uvcdat/cdat_conda/cdat_8_0_py2.1614364313.txt.gz · Last modified: 2021/02/26 19:31 by jypeter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki