Anaconda auf den neuesten Stand bringen - unter Win bzw. Linux

say_hello

say_hello

Dauergast
189
Anaconda auf den neuesten Stand bringen - unter Win bzw. Linux

Moin Community,

im Moment hab ich Anaconda auf eine Windowskiste drauf. Fahre da im Moment noch ein paar updates.

a. den gesamten Navigator
b. spyder u.
c. VSCode -


1663686564108.png



Nebenbei bemerkt:

in einem Linux-Forum -(EndeavourOS) sagte einer dass er Anaconda auf EOS hat.


I also use anaconda on eos, it basically installs most of what you might need for using python on scientific computing.
and no worries about how to update… it will get latest updates every hour minute
:wink:

Ich kenne EOS - und bin überzeugt von diesem Betriebsystem - aber kann das denn sein, dass Anaconda da - mit allen Teilen (an-)dauernd aktuell gehalten wird?

Freue mich von Euch zu hoeren.

vG

Update:
Ich hab mich erinnert. Hatte vor Jahren mal das Thema - also als ich Anaconda auf einem MX_Linux drauf hatte.
Und ja: ich denke jetzt - also heute darüber nach einfach eine Python-Entwicklungsumgebung nativ auf den Linux-Rechner zu packen. Denn in Colab läuft auch nicht alles. Und an Anaconda bin ich ja auch immer am Rumbasteln.

...aber zurück zu Anaconda: Ich hatte früher tatsächlich mal die (se) Frage mit dem Updates im GesamtAnaconda.

Da hatte ich auch das Thema, dass ich alles mal auf den allerneuesten Stand bringen wollte - und ja: damals wollte ich das über die Kommandozeile machen: hatte dann so angesetzt:

conda-base Python 3.7.6

Python 3.7.6
(default, Jan 8 2020, 19:59:22)
Type "copyright", "credits" or "license" for more information.

IPython 7.12.0 -- An enhanced Interactive Python.

Spyder 4.0.1
The Scientific Python Development Environment | Spyder-IDE.org
Copyright © 2009-2019 Spyder Project Contributors and others.
Distributed under the terms of the MIT License.
Python 3.7.6 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Linux 4.19.0-6-amd64

VSCode 1.56.2

Ferner ich dachte mir, dass ich hier erstmal Python auf den neuesten Stand bringen sollte. Das kann man alles über die Kommandozeile erledigen.

also etwa so: “update python cmd”

Code:
python -m pip install pip.
python -m pip install –upgrade pip.
python -m pip install --upgrade pip.


Anm.; ich hab zwar kein Ubuntusystem hier - aber hier hab ich noch eine weiter Moeglichkeit entdeckt - offenslichtlich für Ubuntu gedacht;

Why do I get an error "[Errno 42] Illegal byte sequence" when trying to install pillow using pip?


Step 1: First install the Ubuntu software properties package if it’s not already installed on your system.

Code:
$ sudo apt update

$ sudo apt install software-properties-common

Step 2: After that run the commands to add the PPA.

Code:
$ sudo add-apt-repository ppa:deadsnakes/ppa

Step 3: Finally, run below to install Python 3.8

Code:
$ sudo apt update
$ sudo apt install python3.8

You can check as below:

Code:
$ python3 --version

Zumindest der erste Ansatz - also der pip-basierte - sollte einfach laufen?

Code:
$ python -m pip install pip
Requirement already satisfied: pip in ./anaconda3/lib/python3.7/site-packages (20.0.2)
(base) martin@mx:~
$ python -m pip install –upgrade pip
ERROR: Invalid requirement: '–upgrade'
(base) martin@mx:~
$ python -m pip install --upgrade pip
Collecting pip
  Downloading pip-21.1.1-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 439 kB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.0.2
    Uninstalling pip-20.0.2:
      Successfully uninstalled pip-20.0.2
Successfully installed pip-21.1.1
(base) martin@mx:~
$


diese Methode - die hab ich damals dann auch noch entdeckt:

A Guide to Upgrade Your Python to 3.9 🐍

In LINUX, you may use the following commands:
Code:
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt update
$ sudo apt install python3.9

Then, you can check your new and existing Python installation version as commands below:


Ein sudo apt update ergibt hier folgendes:


Code:
(base) root@mx:/home/martin# sudo apt update
OK:1 http://deb.debian.org/debian buster-updates InRelease
OK:2 http://deb.debian.org/debian buster InRelease                                                
OK:3 http://deb.debian.org/debian-security buster/updates InRelease                               
OK:4 http://dl.google.com/linux/chrome/deb stable InRelease                                       
OK:5 http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo buster InRelease                  
0% [Verbunden mit packagecloud.io (54.183.38.243)] [Warten auf Kopfzeilen] [Verbunden mit packages.
OK:6 https://packages.microsoft.com/repos/vscode stable InRelease                                 
Ign:7 http://repo.vivaldi.com/stable/deb stable InRelease                                         
OK:8 http://repo.vivaldi.com/stable/deb stable Release                   
OK:9 https://packagecloud.io/AtomEditor/atom/any any InRelease
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.      
Statusinformationen werden eingelesen.... Fertig
Alle Pakete sind aktuell.
(base) root@mx:/home/martin#
(base) root@mx:/home/martin#

Hmm also - ich glaub das Anaconda auf Linux total sinn macht.
Neben der Idee ggf. nativ eine Python-Entwicklungsumgembung zu haben.; Wenn dann da nicht die ganzen Höllen mit Pyenv, und env u. den diesbezüglichen Abhängikeiten wären.

Euch noch einen schönen Abend.


PS ist immer die Frage - was ist das gerade Sinnvollste:

Anaconda oder
Conda environment

BTW; wenn man Python native zum Beispiel auf EOS installiert kann man sehr schnell in die Hölle von Abhänigkeiten kommen wie etwa mit Pyenv , Env etc. etx. What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?

# **[What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?]**(What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?)
 
Zuletzt bearbeitet von einem Moderator:
Bearbeitet von: hagex - Grund: Bildvorschau standardisiert. Gruß von hagex

Ähnliche Themen

vonharold
Antworten
6
Aufrufe
621
vonharold
vonharold
Zurück
Oben Unten