other:uvcdat:cdat_conda:miniconda3_install
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:miniconda3_install [2024/04/19 17:07] – [Miniconda3 on a Windows computer] More instructions jypeter | other:uvcdat:cdat_conda:miniconda3_install [2024/04/25 16:24] – [Installation history] Added content jypeter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== JYP steps for installing Miniconda3 ====== | ====== JYP steps for installing Miniconda3 ====== | ||
+ | ===== Before installing Python on a shared computer ===== | ||
+ | |||
+ | ==== Desperately seeking a specific package ==== | ||
+ | |||
+ | Check if the Python package you are [[https:// | ||
+ | |||
+ | * Ask other users who know the local environment | ||
+ | |||
+ | * Read the servers/ | ||
+ | |||
+ | * Use '' | ||
+ | * e.g. on '' | ||
+ | python/ | ||
+ | $ module avail anaconda | ||
+ | anaconda-meso/ | ||
+ | anaconda-meso/ | ||
+ | </ | ||
+ | |||
+ | * Lots of Python packages do very similar things. Maybe you can use another installed package... | ||
+ | |||
+ | * If the packages you need are not available, it may be faster and easier to ask the local system administrators if they can install the packages, rather than doing everything yourself | ||
+ | |||
+ | ==== Using a specific Python on a jupyter server ==== | ||
+ | |||
+ | If there is a //jupyter notebook server// connected to your system, but the Python you want to use is not available on the server, follow the [[other: | ||
===== Why should you use Miniconda3 ? ===== | ===== Why should you use Miniconda3 ? ===== | ||
Line 41: | Line 66: | ||
==== Miniconda3 on a Windows computer ==== | ==== Miniconda3 on a Windows computer ==== | ||
- | Some of the steps below are adapted from the [[https:// | + | Some of the steps below are adapted from the [[https:// |
=== Downloading the Miniconda3 installer on Windows === | === Downloading the Miniconda3 installer on Windows === | ||
Line 54: | Line 79: | ||
* Open a // | * Open a // | ||
* Windows // | * Windows // | ||
- | * [[other: | + | * [[other: |
* Use '' | * Use '' | ||
Line 64: | Line 89: | ||
=== BASIC Miniconda3 installation on Windows === | === BASIC Miniconda3 installation on Windows === | ||
- | * **Determine the folder where you will install Miniconda3 and all your future Python environments** based on this version of Miniconda3\\ **We will later refer to this location as ''/ | + | * **Determine the folder where you will install Miniconda3 and ALL your future Python environments** based on this version of Miniconda3\\ **We will later refer to this location as ''/ |
* Remember that **you will need a few Gb of available space** | * Remember that **you will need a few Gb of available space** | ||
* You should **avoid installing Miniconda3 in your Windows //home// folder** ('' | * You should **avoid installing Miniconda3 in your Windows //home// folder** ('' | ||
* We add some date or version information at the end of the folder name, in order to differentiate it from other (older of future) installations | * We add some date or version information at the end of the folder name, in order to differentiate it from other (older of future) installations | ||
- | * Example installation folder: '' | + | * Example installation folder: '' |
* Launch the Miniconda3 installer with< | * Launch the Miniconda3 installer with< | ||
Line 91: | Line 116: | ||
* Remove the installer< | * Remove the installer< | ||
- | * Open an //Anaconda PowerShell Prompt//, and type a few commands to make sure that '' | + | * Open an //Anaconda PowerShell Prompt//, and type a few commands to make sure that '' |
base * C: | base * C: | ||
Line 131: | Line 156: | ||
=== Downloading the Miniconda3 installer === | === Downloading the Miniconda3 installer === | ||
+ | |||
+ | * Important: <wrap hi>do not install your own Python environment(s) on shared computers before you have made sure that the packages you need are not already installed, or cannot be easily installed in an existing environment (by the person who maintains this environment)!</ | ||
+ | * Check the output of '' | ||
* We use a download link that always point to the [[https:// | * We use a download link that always point to the [[https:// | ||
Line 136: | Line 164: | ||
* Note: Mac users should use the latest [[https:// | * Note: Mac users should use the latest [[https:// | ||
* The installer is based on **Python 3.12.2 and Conda 24.3.0 as of April 2024** | * The installer is based on **Python 3.12.2 and Conda 24.3.0 as of April 2024** | ||
+ | |||
* Find some temporary space on Linux (or Windows, if you are using [[other: | * Find some temporary space on Linux (or Windows, if you are using [[other: | ||
- | * e.g. Linux at **LSCE**:\\ '' | + | * e.g. Linux on the **LSCE** |
- | * e.g. Linux at **spiritx**:< | + | * e.g. Linux on the IPSL **spiritx** |
$ cd / | $ cd / | ||
- | * e.g. Linux on a **personal PC/Mac desktop/ | + | * e.g. Linux on a **personal PC/Mac desktop/ |
* Use '' | * Use '' | ||
Line 373: | Line 402: | ||
</ | </ | ||
===== Initializing conda in terminals ===== | ===== Initializing conda in terminals ===== | ||
+ | <WRAP center round tip 60%> | ||
+ | |||
+ | Reminder: if you have installed Miniconda3 on a Windows computer, you only have to open a terminal with | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | </ | ||
+ | |||
When you open a terminal, your shell needs to know where to find the '' | When you open a terminal, your shell needs to know where to find the '' | ||
Line 495: | Line 532: | ||
==== Installation history ==== | ==== Installation history ==== | ||
+ | You can get the current list of installed packages with '' | ||
+ | * '' | ||
+ | * You can theoretically roll back to a previous '' | ||
+ | * There is more information in the ''/ | ||
+ | * '' | ||
+ | * '' | ||
+ | * e.g. installation commands for the '' | ||
+ | |||
+ | ==> 2024-02-23 18:39:23 <== | ||
+ | # cmd: constructor / | ||
+ | ==> 2024-03-27 16:10:01 <== | ||
+ | # cmd: / | ||
+ | ==> 2024-03-28 11:38:08 <== | ||
+ | [...] | ||
+ | ==> 2024-04-24 17:47:32 <== | ||
+ | # cmd: / | ||
+ | * You can also, use a script and the '' | ||
===== Uninstalling Miniconda3 ===== | ===== Uninstalling Miniconda3 ===== | ||
Line 505: | Line 559: | ||
* '' | * '' | ||
* Select '' | * Select '' | ||
- | * Click on '' | + | * Click on '' |
- | * The (very big) directory that you specified when you installed // | + | * This will remove: |
- | * The '' | + | * The (very big) directory that you specified when you installed // |
+ | * The '' | ||
+ | * This will **not** remove your local configuration file '' | ||
==== Linux-like computer ==== | ==== Linux-like computer ==== | ||
+ | |||
+ | FIXME | ||
other/uvcdat/cdat_conda/miniconda3_install.txt · Last modified: 2024/08/09 17:42 by jypeter