Android

Sådan installeres anaconda på debian 10

How to Install and Configure Git and GitHub on Windows

How to Install and Configure Git and GitHub on Windows

Indholdsfortegnelse:

Anonim

Anaconda er den mest populære Python / R datavidenskab og maskinelæringsplatform. Det bruges til stor databehandling, forudsigelig analyse og videnskabelig computing.

Anaconda distribution distribueres med mere end 1.500 open source datapakker. Det inkluderer også conda-kommandolinjeværktøjet og en desktop grafisk brugergrænseflade kaldet Anaconda Navigator.

I denne tutorial vil vi lede dig gennem at downloade og installere Anaconda Python Distribution på Debian 10.

Installation af Anaconda

På dette tidspunkt, hvor denne artikel skrives, er den seneste stabile version af Anaconda version 2019.10. Før du downloader Anaconda-installationsskriptet, skal du besøge siden Anaconda-downloads og kontrollere, om der er en ny version af Anaconda til Python 3, der kan downloades.

Kør scriptet for at starte Anaconda-installationsprocessen:

sh /tmp/Anaconda3-2019.10-Linux-x86_64.sh

Welcome to Anaconda3 2019.10 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue >>>

Tryk på ENTER at fortsætte, og tryk derefter på SPACE at rulle gennem licensen. Når du er færdig med at gennemgå licensen, bliver du bedt om at acceptere licensbetingelserne:

Do you accept the license terms? >>> yes

Skriv yes at acceptere licensen, og scriptet beder dig vælge installationsstedet.

Anaconda3 will now be installed into this location: /home/vagrant/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below

Standardplaceringen er fin for de fleste brugere. Tryk på ENTER at bekræfte placeringen, og installationsprocessen starter.

Installationen kan tage noget tid. Når det er afsluttet, ser du følgende:

Preparing transaction: done Executing transaction: done installation finished. Do you wish the installer to initialize Anaconda3 by running conda init?

Skriv yes , tryk ENTER og scriptet tilføjer conda til din PATH :

==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Anaconda3! =========================================================================== Anaconda and JetBrains are working together to bring you Anaconda-powered environments tightly integrated in the PyCharm IDE. PyCharm for Anaconda is available at:

For at aktivere Anaconda-installationen skal du indlæse den nye PATH miljøvariabel, der blev tilføjet af Anaconda-installationsprogrammet i den aktuelle shell-session med følgende kommando:

source ~/.bashrc

Brug conda kommandoen til at kontrollere, at Anaconda blev installeret med conda :

conda info

active environment: base active env location: /home/vagrant/anaconda3 shell level: 1 user config file: /home/vagrant/.condarc populated config files: conda version: 4.7.12 conda-build version: 3.18.9 python version: 3.7.4.final.0 virtual packages: base environment: /home/vagrant/anaconda3 (writable) channel URLs: https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache: /home/vagrant/anaconda3/pkgs /home/vagrant/.conda/pkgs envs directories: /home/vagrant/anaconda3/envs /home/vagrant/.conda/envs platform: linux-64 user-agent: conda/4.7.12 requests/2.22.0 CPython/3.7.4 Linux/4.19.0-5-amd64 debian/10 glibc/2.28 UID:GID: 1000:1000 netrc file: None offline mode: False

Opdaterer Anaconda

Opdatering af Anaconda er en temmelig ligefrem proces. Start med at opdatere conda værktøjet med:

conda update conda

Når du bliver bedt om at bekræfte opdateringen, skal du skrive y at fortsætte.

Når conda er opdateret, skal du fortsætte med Anaconda-opdateringen:

conda update anaconda

Samme som før, når du bliver bedt om det, skriv y at fortsætte.

Du skal regelmæssigt opdatere din Anaconda-installation.

Afinstallation af Anaconda

Hvis du vil afinstallere Anaconda fra dit Debian-system, skal du først fjerne det bibliotek, hvor du har installeret Anaconda:

rm -rf ~/anaconda3

Rediger ~/.bashrc filen, og fjern Anaconda-biblioteket fra PATH-miljøvariablen:

~ /.Bashrc

# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/vagrant/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if; then eval "$__conda_setup" else if; then. "/home/vagrant/anaconda3/etc/profile.d/conda.sh" else export PATH="/home/vagrant/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<

Kør følgende rm kommando for at fjerne de skjulte filer og mapper fra brugerens hjemmekatalog:

rm -rf ~/.condarc ~/.conda ~/.continuum `` `

Konklusion

Nu, hvor du har downloadet og installeret Anaconda på dit Debian-system, kan du kontrollere den officielle Kom godt i gang med conda-guide.

debian anaconda