pgielen
Posts: 9
Joined: Sun Feb 24, 2019 6:47 pm

replacing Python3 by 3.6

Thu Nov 14, 2019 2:00 pm

I installed Python 3.6 on my RPi 3B+, hoping to replace the current Python3.5.3 that came with Raspbian Stretch. I needed the new version for a robot vacuum plugin that requires >= 3.6.

Unfortunately, after the install proces, both Python versions exist on my system. I created an alias, with no luck:

$ alias python3=python3.6

So, how can I really replace Python3 and not have two versions on my system, or al least make the newer Python version the default in Raspbian?

Pierre

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: replacing Python3 by 3.6

Thu Nov 14, 2019 2:05 pm

pgielen wrote:
Thu Nov 14, 2019 2:00 pm
I installed Python 3.6 on my RPi 3B+, hoping to replace the current Python3.5.3 that came with Raspbian Stretch. I needed the new version for a robot vacuum plugin that requires >= 3.6.

Unfortunately, after the install proces, both Python versions exist on my system. I created an alias, with no luck:

$ alias python3=python3.6

So, how can I really replace Python3 and not have two versions on my system, or al least make the newer Python version the default in Raspbian?

Pierre



If you take the opportunity to replace your superceded Operating System with the current supported Raspbian Buster Operating System you will have Python v3.7.3 installed by default.

Code: Select all

Last login: Thu Nov 14 12:23:51 2019 from 192.168.1.138
pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Apr  3 2019, 05:39:12)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

pgielen
Posts: 9
Joined: Sun Feb 24, 2019 6:47 pm

Re: replacing Python3 by 3.6

Fri Nov 15, 2019 4:12 pm

Sounds great, but I don't want to loose all installed programs, plugins and settings...

Return to “Troubleshooting”