Anaconda / Miniconda auf Win & Linux: Einsatz, Möglichkeiten und Installation

say_hello

say_hello

Dauergast
190
Hallo Community,

ich würde gerne Anaconda oder Miniconda auf einem MX-Linux-System installieren. mit Anaconda/Minicoda ::

Ana/Miniconda ist ein Python package & virtual environment manager. Aber leider ist das nicht in dem Synaptic oder Paket-Installer drinne: Das ist sehr schade: Das einzige was ich gefunden habe - das ist eine allgem. Anleitung.

ggf. gibt es hier noch debianbasierte Optionen und Anleitungen:

das hier hab ich gefunden: https://www.dunderdata.com/blog/anacnd-conda-forge

...
If you don't mind the size, (some 12GB) Anaconda comes with lots of stuff, many you will probably never use, but also nicely integrated several different IDE's such as Spyder, which is much better, nicer, advanced than IDLE. It also comes VSCode very nice advance IDE. IDLE used to come with Python, but don't know if this is still the case, i never use it, so i can't help you here
Conda documentation: Miniconda — Conda documentation

...ich werde mir das mal ansehen und eine Anleitung für Conda daraus ableiten. Es gibt eine Mini-Anleitung für die Installation via Kommandozeile. Eleganter wäre schon - wenn das in Synaptic oder im Package-Installer integriert wäre. Hier das Manual für die manuelle Installation. idle python 3.8 - MX Linux Forum (der Link: idle python 3.8 - MX Linux Forum ) Wenn ich nichts praktikableres finde - dann werde ich nach der Installation verfahren!

VG

update: und um hier noch kurz eine weitere Frage hinterherzuschieben: ich hab VSCode (und Python auf einem Desktop [zugegeben hier jetzt win10]) Also die Frage: kann ich denn dann hier noch ohne weiteres und ohne Konfigurationsorgien nun ggf. Anaconda installieren? Geht das denn!? Kommen sich hier nicht Anaconda und Python (das schon auf dem Rechner ist) in die Quere!?

Muss ich dann ggf. in das Setting gehen und dort in settings.json den python.path editieren - etwa

Code:
"python.pythonPath": "C:\\Anaconda3\\envs\\py34\\python.exe"

Zusammengefasst: muss ich dann also noch eine spezifische Umgebung aktivieren?

...so that the script runs in that Anaconda environment? – and what about the User and Workspace Settings: see here: Activating Anaconda Environment in VsCode :: can i integrate vscode into anaconda - how to do this?

Activating Anaconda Environment in VsCode:

the question is: how to configure Visual Studio Code to our liking through its various settings. Nearly every part of VS Code's editor, user interface, and functional behavior has options we can modify. i found some Instructions to edit settings.json here: Visual Studio Code User and Workspace Settings

VS Code provides two different scopes for settings:

User Settings - Settings that apply globally to any instance of VS Code you open.
Workspace Settings - Settings stored inside your workspace and only apply when the workspace is opened.
Workspace settings override user settings. Workspace settings are specific to a project and can be shared across developers on a project.
Note: A VS Code "workspace" is usually just your project root folder. Workspace settings as well as debugging and task configurations are stored at the root in a .vscode folder. You can also have more than one root folder in a VS Code workspace through a feature called Multi-root workspaces.

Creating User and Workspace Settings: To open your user and workspace settings, use the following VS Code menu command:

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

vgl. hier: Activating Anaconda Environment in VsCode :: can i integrate vscode into anaconda - how to do this?
Activating Anaconda Environment in VsCode

Also, die Ausgangs-Zusatz-Frage ist die Folgende: kann ich denn dann hier noch ohne weiteres und ohne Konfigurationsorgien nun ggf.
Anaconda installieren? Geht das denn!? Kommen sich hier nicht Anaconda und Python (das schon auf dem Rechner ist) in die Quere!?
zuletzt noch die Vergleichsfrage am Rande: - welches der beiden Systeme wird denn schneller & nachhaltiger entwickelt: Anaconda oder WinPython:
vgl. WinPython

Designed for scientists, data-scientists, and education (thanks to NumPy, SciPy, Sympy, Matplotlib, Pandas, pyqtgraph, etc.):
interactive data processing and visualization using Python with Spyder and Jupyter/IPython, Pyzo, IDLEX or IDLE fully integrated Cython and Numba! See included example connectors (cffi, odbc, rpy2, scilab2py, requests, ...) for advanced users
Portable: Runs out of the box(*) on any Windows 8+ with 2GB Ram (Jupyter Notebook will require a recent browser)
The WinPython folder can be moved to any location (**) (local, network, USB drive) with most of the application settings
Flexible:
You can install as many WinPython distributions as you want on the same machine: each one is isolated and self-consistent
These installations can be of different versions of Python (3.7/3.8/3.9...)
Customizable:
The integrated WinPython Package Manager (WPPM) helps installing, uninstalling or upgrading Python packages
It's also possible to install or upgrade packages using pip from the WinPython command prompt
A configuration file allows you to set environment variables at runtime

Die Frage Anaconda & WinPython - hier also als Systemfrage: aber ich denke, dass ich mich für Anaconda entscheide - denn dies kann ich auf Win & MX-Linux laufen lassen - einarbeitung nur in ein System..


update: ich hab mal noch etwas weiter-gemacht - und zwar mit dem Versuch Anaconda auf das MX-Linux-System 19.2 zu installieren.

also - hier gibts eine von der o.g. Quelle abgeleitete Anleitung für Conda-Installation: idle python 3.8 - MX Linux Forum
ich bin '''dieser Installationanleitung gefolgt''': Wie man die Anaconda Python Distribution unter Debian 10 installiert - HowtoForge

bis hierher hat alles super geklappt:

Code:
installing: scikit-image-0.14.2-py37he671110b0_0 ...
installing: scikit-learn-0.20.3-py37hd81dba3_0 ...
installing: astropy-3.1.2-py37h7b6447c_0 ...
installing: statsmodels-0.9.0-py37h035aef0_0 ...
installing: seaborn-0.9.0-py37_0 ...
installing: anaconda-2019.03-py37_0 ...
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

eval "$(/root/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"

To install conda's shell functions for easier access, first activate, then:

conda init

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:

allerdings glaube ich dass ich oben nun etwas übersprungen habe: Denn an diesesr Stelle komme ich nicht mehr weiter.+

Code:
Aktivieren Sie nun die Anaconda-Installation mit dem folgenden Befehl:
source ~/.bashrc
Sie sollten die folgende Ausgabe sehen:

und ich glaube dass oben irgendetwas übersprungen wurde: hier nämlich...

Code:
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

wie gesagt - es scheint irgendwie nicht weiterzugehen:

Code:
root@mx:/home/martin# source ~/.bashrc

wie gesagt: dieser Anleitung folge ich im ganzen bei dem Versuch Anaconda zu installieren auf dem MX 19.2 System..https://www.howtoforge.de/anleitung/wie-man-die-anaconda-python-distribution-unter-debian-10-installiert/

...jetzt versuche ich herauszubekommen woran es hängt. es scheint mir hier diese Stelle problematisch:

Code:
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>

....vermutlich habe ich hier einen Fehler gemacht!?
:)



update:


hab das auch noch mit diesen install-instruktionen hier versucht Installing on Linux — Anaconda documentation


Installing on Linux

Prerequisites


To use GUI packages with Linux, you will need to install the following extended dependencies for Qt:

Debian apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
RedHat yum install libXcomposite libXcursor libXi libXtst libXrandr alsa-lib mesa-libEGL libXdamage mesa-libGL libXScrnSaver
ArchLinux pacman -Sy libxau libxi libxss libxtst libxcursor libxcomposite libxdamage libxfixes libxrandr libxrender mesa-libgl alsa-lib libglvnd
OpenSuse/SLES zypper install libXcomposite1 libXi6 libXext6 libXau6 libX11-6 libXrandr2 libXrender1 libXss1 libXtst6 libXdamage1 libXcursor1 libxcb1 libasound2 libX11-xcb1 Mesa-libGL1 Mesa-libEGL1
Gentoo emerge x11-libs/libXau x11-libs/libxcb x11-libs/libX11 x11-libs/libXext x11-libs/libXfixes x11-libs/libXrender x11-libs/libXi x11-libs/libXcomposite x11-libs/libXrandr x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXScrnSaver x11-libs/libXtst media-libs/alsa-lib media-libs/mesa


dann folgt das hier Installing Anaconda on Linux - Problem Solving with Python


5. Run the bash script to install Anaconda3

With the bash installer script downloaded, run the .sh script to install Anaconda3. Ensure you are in the directory where the installer script downloaded:

Code:
$ ls

Anaconda3-5.2.0-Linux-x86_64.sh
Run the installer script with bash.

Code:
$ bash Anaconda3-5.2.0-Linux-x86_64.sh

und dann gehts weiter

Code:
(base) martin@mx:~/Downloads
$ wget https://repo.continuum.io/archive/Anaconda3.sh
--2020-05-08 16:31:32--  https://repo.continuum.io/archive/Anaconda3.sh
Auflösen des Hostnamens repo.continuum.io (repo.continuum.io)… 2606:4700::6812:c94f, 2606:4700::6812:c84f, 104.18.201.79, ...
Verbindungsaufbau zu repo.continuum.io (repo.continuum.io)|2606:4700::6812:c94f|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 301 Moved Permanently
Platz: https://repo.anaconda.com/archive/Anaconda3.sh [folgend]
--2020-05-08 16:31:32--  https://repo.anaconda.com/archive/Anaconda3.sh
Auflösen des Hostnamens repo.anaconda.com (repo.anaconda.com)… 2606:4700::6810:8203, 2606:4700::6810:8303, 104.16.130.3, ...
Verbindungsaufbau zu repo.anaconda.com (repo.anaconda.com)|2606:4700::6810:8203|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 404 Not Found
2020-05-08 16:31:32 FEHLER 404: Not Found.
(base) martin@mx:~/Downloads
$ https://repo.continuum.io/archive/Anaconda3<release>.sh
bash: release: Datei oder Verzeichnis nicht gefunden
(base) martin@mx:~/Downloads
$ ls
'Anaconda3-2020.02-Linux-x86_64 (1).sh'   Anaconda3-2020.02-Linux-x86_64.sh
(base) martin@mx:~/Downloads
$ bash Anaconda3-2020.02-Linux-x86_64
bash: Anaconda3-2020.02-Linux-x86_64: Datei oder Verzeichnis nicht gefunden
(base) martin@mx:~/Downloads
$

hmmm - ich bin noch nicht ganz sicher ob dass alles so super durchläuft. Ich probiere noch einiges aus. Auf alle fälle melde ich mich nochmals

update: bezogen auf die Installation von Anaconda 3 auf MX-Linux 19.2

update
: hab alle anaconda-3-Dinge nach der offiziellen instruktion installiert

vgl. docs: Installing on Linux — Anaconda documentation

a quick walktrough through the steps ended up in fully-fledged installation of Anaconda3

next steps are shown here: Getting started with Anaconda — Anaconda documentation

Linux: Open a terminal window and type anaconda-navigator.

voila - Anaconda3 startet

conclusio: alles läuft sehr sehr gut.

viele Grüße
 
Zuletzt bearbeitet:
hier eine gute Beschreibung - wie das funktioniert:

Where did they go - the github and the anaconda discussion forums

Here is part of a script I run on a recent install. Note the anaconda link can be updated from time to time… All install instructions for linux can be found on their webpage.

Code:
#Download anaconda



$ cd ~/Downloads



$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh



#make installer executable and run it

$ chmod +x Anaconda3-2022.05-Linux-x86_64.sh



$ ./Anaconda3-2022.05-Linux-x86_64.sh
 

Ähnliche Themen

say_hello
Antworten
0
Aufrufe
330
say_hello
say_hello
vonharold
Antworten
6
Aufrufe
623
vonharold
vonharold
Zurück
Oben Unten