Python Version

redsnapper

Benutzer
Registriert
30. Mai 2019
Beiträge
19
Reaktionspunkte
1
Punkte
3
Hallo,

im Paketmanager (-zentrum) meiner DSM 7.1.1-42962 steht, dass Python in der Version 3.9.14-0003 installiert ist. Greife isch jedoch per SSH auf meine DS 213j zu und gebe im Terminal Python ein, dann wird mir die Versionsnummer 3.8.12 ausgegeben.

Kann mir das jemand erklären?

Vielen Dank!

Mit freundlichen Grüßen,
Andreas Rothbart
 
I get the same in DSM 7.2.2-72806 Update 1:
  • Package center shows Python 3.9 installed.
  • Package center shows Python 3.8 is not installed.
  • python --version via SSH shows Python 3.8.15
  • If I use the full path to python 3.9 it shows Python 3.9.14
  • If I use python3.9 --version via SSH shows Python 3.9.14
1740420625597.png

Python 3.9 is installed as an optional package:
1740420649026.png

Python 3.8 is installed in the system partition as the default python version as part of DSM:
1740420705798.png
 
Interesting!
What would happen if I use

sudo apt-get update / upgrade?

Would that update the internal Python? Or brick my whole NAS?
 
No, don't do apt-get

You could delete the /usr/bin/python3 simlink and create a new symlink pointing to /var/packages/Python3.9/target/usr/bin/python3.9

But I'm not sure how DSM would cope if you later uninstalled python 3.9
 
  • Like
Reaktionen: redsnapper

Additional post fields

 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat