| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| floss:anaconda [2021/02/01 18:39] – [Installation] villersd | floss:anaconda [2023/05/28 10:36] (Version actuelle) – villersd |
|---|
| * [[https://problemsolvingwithpython.com/01-Orientation/01.03-Installing-Anaconda-on-Windows/|Installing Anaconda on Windows - Problem Solving with Python]] | * [[https://problemsolvingwithpython.com/01-Orientation/01.03-Installing-Anaconda-on-Windows/|Installing Anaconda on Windows - Problem Solving with Python]] |
| * [[https://medium.com/@GalarnykMichael/install-python-anaconda-on-windows-2020-f8e188f9a63d|Install Python (Anaconda) on Windows - by Michael Galarnyk - Medium]] | * [[https://medium.com/@GalarnykMichael/install-python-anaconda-on-windows-2020-f8e188f9a63d|Install Python (Anaconda) on Windows - by Michael Galarnyk - Medium]] |
| | * [[https://realpython.com/python-windows-machine-learning-setup/|Setting Up Python for Machine Learning on Windows]], Renato Candido, Real Python, 2021 |
| * Mac OS | * Mac OS |
| * [[https://docs.anaconda.com/anaconda/install/mac-os/]] | * [[https://docs.anaconda.com/anaconda/install/mac-os/]] |
| * [[https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart-fr|Comment installer Anaconda sur Ubuntu 18.04]] | * [[https://www.digitalocean.com/community/tutorials/how-to-install-anaconda-on-ubuntu-18-04-quickstart-fr|Comment installer Anaconda sur Ubuntu 18.04]] |
| * [[http://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu]] (concerne installation sous Ubuntu GNU/Linux) | * [[http://askubuntu.com/questions/505919/installing-anaconda-python-on-ubuntu]] (concerne installation sous Ubuntu GNU/Linux) |
| * création d'un lanceur pour Anaconda Navigator : [[https://askubuntu.com/questions/1017284/cant-create-anaconda-shortcut-to-launch-from-desktop-on-ubuntu-17-10|Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?]] | |
| * janvier 2021 : | |
| * sudo apt-get update | |
| * sudo apt-get upgrade | |
| * sudo apt-get install curl | |
| * curl -O https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh | |
| * vérifier sur [[https://docs.anaconda.com/anaconda/install/hashes/Anaconda3-2020.11-Linux-x86_64.sh-hash/]] | |
| * bash Anaconda3-2020.11-Linux-x86_64.sh | |
| |
| ==== Mises à jour, update ==== | ==== Sous GNU/Linux Ubuntu 20.04 : ==== |
| | |
| | * mars 2022 : |
| | |
| | sudo apt-get update |
| | sudo apt-get upgrade |
| | sudo apt-get install curl |
| | curl -O https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh |
| | |
| | * vérifier sur [[https://docs.anaconda.com/anaconda/install/hashes/Anaconda3-2021.11-Linux-x86_64.sh-hash/]] |
| | * bash Anaconda3-2021.11-Linux-x86_64.sh |
| | |
| | * création d'un lanceur pour Anaconda Navigator : [[https://askubuntu.com/questions/1017284/cant-create-anaconda-shortcut-to-launch-from-desktop-on-ubuntu-17-10|Can't create anaconda shortcut to launch from desktop on ubuntu 17.10?]] |
| | * dans ~/bin, créer le fichier anaconda.sh |
| | |
| | <code anaconda.sh> |
| | export CONDA_PYTHON_EXE=/home/username/anaconda3/bin/python |
| | export PATH=/home/username/anaconda3/bin:$PATH |
| | python /home/username/anaconda3/bin/anaconda-navigator |
| | </code> |
| | |
| | * créer un fichier anaconda.desktop |
| | <code anaconda.desktop> |
| | [Desktop Entry] |
| | Version=1.0 |
| | Type=Application |
| | Name=Anaconda-Navigator |
| | GenericName=Anaconda |
| | Exec=/bin/bash "/home/username/bin/anaconda.sh" |
| | Icon=/home/username/anaconda3/lib/python3.8/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png |
| | Terminal=false |
| | StartupNotify=true |
| | </code> |
| | * exécuter la commande : sudo desktop-file-install anaconda.desktop |
| | |
| | |
| | ===== Préférences, réglages ===== |
| | * Anaconda-Navigator |
| | * enable_high_dpi_scaling = False (pour évitre de trop gros lanceurs) |
| | * "channels" → ajouter à "default" le canal "conda-forge" |
| | * Spyder |
| | * thème clair : Idle,... |
| | * menu Outils - option Préférences - rubrique Console Ipython - onglet Graphiques - la sortie “Automatique” permet d'obtenir les graphes dans une fenêtre interactive, sinon, choisir “En ligne”. L'option sera prise en compte après avoir quitté Spyder et l'avoir relancé |
| | |
| | |
| | ===== Mises à jour, update ===== |
| * conda update conda | * conda update conda |
| * conda update anaconda | * conda update anaconda |
| * mieux que conda update --all --yes : see [[https://github.com/conda/conda/issues/1414]] | * mieux que conda update --all --yes : see [[https://github.com/conda/conda/issues/1414]] |
| * ref : [[https://stackoverflow.com/questions/45197777/how-do-i-update-anaconda]] | * ref : [[https://stackoverflow.com/questions/45197777/how-do-i-update-anaconda]] |
| | |
| |
| ==== Désinstallation ==== | ==== Désinstallation ==== |
| |
| |
| | ===== Alternatives à conda ===== |
| | * [[https://mamba.readthedocs.io/en/latest/|Mamba]] : fast, robust, and cross-platform package manager, running on Windows, OS X and Linux (ARM64 and PPC64LE included) and fully compatible with conda packages. Mamba supports most of conda’s commands. |
| |