This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
other:uvcdat:cdat_conda:miniconda3_install [2024/04/22 16:00] jypeter [Miniconda3 on a Linux-like computer] Improved |
other:uvcdat:cdat_conda:miniconda3_install [2024/04/25 14:24] (current) jypeter [Installation history] Added content |
||
---|---|---|---|
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://www.imdb.com/title/tt0089017/|desperately seeking]] is not already installed, before installing your own Python on shared Linux servers, or on a shared cluster !! | ||
+ | |||
+ | * Ask other users who know the local environment | ||
+ | |||
+ | * Read the servers/cluster documentation | ||
+ | |||
+ | * Use ''[[other:newppl:starting#using_module_to_access_optional_programs|module avail [mod_name]]]'' to find out the Python versions available, and then ''module load'' and ''conda list'' to get more information | ||
+ | * e.g. on ''spiritx'': <code>$ module avail python | ||
+ | python/meso-3.8 python/meso-3.9 python/meso-3.10 python/meso-3.11 | ||
+ | $ module avail anaconda | ||
+ | anaconda-meso/2022.10 anaconda3-py/2020.11 | ||
+ | anaconda-meso/2023.09-0 anaconda3-py/2021.11 | ||
+ | </code> | ||
+ | |||
+ | * 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:python:starting#using_a_non-standard_kernel|using a non-standard kernel]] instructions, rather than starting your own local server | ||
===== Why should you use Miniconda3 ? ===== | ===== Why should you use Miniconda3 ? ===== | ||
Line 507: | Line 532: | ||
==== Installation history ==== | ==== Installation history ==== | ||
+ | You can get the current list of installed packages with ''conda list -n existing_environment'', but it may also be useful to know in which order the packages were installed: | ||
+ | * ''conda list -n existing_environment %%--%%revisions'': display **exactly** what was installed and when (including the updates, and automatic dependencies installation) | ||
+ | * You can theoretically roll back to a previous ''RR'' //revision// number with: ''conda install -n existing_environment %%--%%revision RR'' | ||
+ | * There is more information in the ''/path_to_miniconda/conda-meta/history'' installation log files. | ||
+ | * ''base'' history file: ''/path_to_miniconda/conda-meta/history'' | ||
+ | * ''existing_environment'' history file: ''/path_to_miniconda/envs/existing_environment/conda-meta/history'' | ||
+ | * e.g. installation commands for the ''base'' environment:\\ <code> $ egrep -e 'cmd:' -e '==>' /homedata/jypmce/miniconda3_2024-03/conda-meta/history | ||
+ | |||
+ | ==> 2024-02-23 18:39:23 <== | ||
+ | # cmd: constructor /tmp/tmp.4um5tGKcqW/miniconda3/ --output-dir /tmp/tmp.4um5tGKcqW | ||
+ | ==> 2024-03-27 16:10:01 <== | ||
+ | # cmd: /homedata/jypmce/miniconda3_2024-03/bin/conda update -n base --all | ||
+ | ==> 2024-03-28 11:38:08 <== | ||
+ | [...] | ||
+ | ==> 2024-04-24 17:47:32 <== | ||
+ | # cmd: /homedata/jypmce/miniconda3_2024-03/bin/conda update -n base --all</code> | ||
+ | * You can also, use a script and the ''conda'' module available **in the ''base'' environment**: [[https://github.com/conda/conda/issues/4545#issuecomment-469984684|example]] | ||
===== Uninstalling Miniconda3 ===== | ===== Uninstalling Miniconda3 ===== | ||
Line 517: | Line 559: | ||
* ''Start'' => ''Settings'' => ''Apps'' => ''Apps & features'' | * ''Start'' => ''Settings'' => ''Apps'' => ''Apps & features'' | ||
* Select ''Miniconda3 py3xxxxx'' | * Select ''Miniconda3 py3xxxxx'' | ||
- | * Click on ''Uninstall'' and follow the instructions displayed by the uninstaller window\\ This will remove: | + | * Click on ''Uninstall'' and follow the instructions displayed by the uninstaller window |
- | * The (very big) directory that you specified when you installed //Miniconda3// | + | * This will remove: |
- | * The ''conda'' shortcuts from the ''Start Menu'' | + | * The (very big) directory that you specified when you installed //Miniconda3// |
+ | * The ''conda'' shortcuts from the ''Start Menu'' | ||
+ | * This will **not** remove your local configuration file ''C:\Users\your_login\.condarc'' | ||
==== Linux-like computer ==== | ==== Linux-like computer ==== | ||
+ | |||
+ | FIXME | ||