NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
viperhansa
Aug 09, 2020Virtuoso
PYTHON 3
Hi all, Running OS 6.10.3 on a legacy pro 6. Works like a charm... My question is: will there be a update from PYTHON 2.7 to 3.xx ? One of my apps will go over to version 3 and will not be ...
- Aug 16, 2020
From what I understand, Python2 and Python3 can safely co-exists. So, from SSH apt intall python3 from SSH should install Python3 and leave Python2 alone. Prior to that, it is best to do an apt update to refresh the repository listings. I believe you can also specify a specific version (apt install python3.6) if needed, but multiple versions of Python3.x cannot co-exist.
I have no idea how big the Python3 installation is or where it gets installed. It is best practice on the ReadyNAS to create a directory in /apps to which you move the installation, replacing the original location with a hard link to the new one. That's because /apps is not on the OS partition and that partition does have limited size. That's one of the main things a ReadyNAS-specific app does for you.
Sandshark
Aug 16, 2020Sensei - Experienced User
From what I understand, Python2 and Python3 can safely co-exists. So, from SSH apt intall python3 from SSH should install Python3 and leave Python2 alone. Prior to that, it is best to do an apt update to refresh the repository listings. I believe you can also specify a specific version (apt install python3.6) if needed, but multiple versions of Python3.x cannot co-exist.
I have no idea how big the Python3 installation is or where it gets installed. It is best practice on the ReadyNAS to create a directory in /apps to which you move the installation, replacing the original location with a hard link to the new one. That's because /apps is not on the OS partition and that partition does have limited size. That's one of the main things a ReadyNAS-specific app does for you.
viperhansa
Aug 16, 2020Virtuoso
Sandshark wrote:From what I understand, Python2 and Python3 can safely co-exists. So, from SSH apt intall python3 from SSH should install Python3 and leave Python2 alone. Prior to that, it is best to do an apt update to refresh the repository listings. I believe you can also specify a specific version (apt install python3.6) if needed, but multiple versions of Python3.x cannot co-exist.
I have no idea how big the Python3 installation is or where it gets installed. It is best practice on the ReadyNAS to create a directory in /apps to which you move the installation, replacing the original location with a hard link to the new one. That's because /apps is not on the OS partition and that partition does have limited size. That's one of the main things a ReadyNAS-specific app does for you.
UPDATE:
Well, managed to install it properly.
Non of the apps in question "see" it installed. Still reports the old 2.7 version of python.
Have anyone seen Mhynlo recently?
He wrote the main installer for them.
regards Hans.
- StephenBAug 16, 2020Guru - Experienced User
viperhansa wrote:
UPDATE:
Well, managed to install it properly.
None of the apps in question "see" it installed. Still reports the old 2.7 version of python.Since they can coexist, that makes some sense.
It sounds like this is only a issue with one app in particular. So I suggest looking more closely on how that app is configured.
- SandsharkAug 16, 2020Sensei - Experienced User
Since Python3 is called via the python3 command, not just python, that's going to happen if the apps are not somehow modified or an alias is put in place for python3 to act as python. Here is a discussion about just that: How-to-make-python-program-command-execute-python-3. One potential issue, however, is that Pytho3 is not 100% backward compatible with Python2, so this could break some older apps.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!