On a fresh install of Raspbian Jessie+PIXEL (1/11/17 release), I installed from the source Python 3.6.0.
I downloaded the tgz
file from Python.org and built from source. I used a couple of sources to research install to ensure I didn't do anything abnormal or wrong in process and they match with what is answered in the Raspberry Pi SE regarding install of Python 3.6.0 (the only thing I did different was using sudo -s
as a separate command in the terminal before any other command.)
When downloading, the tgz
file defaults to the /home/pi/Downloads
folder and extracting creates the folder /Python-3.6.0
inside of that. After running the commands for install I can see the python executable which will open LX-Terminal and state use of python 3.6
When I browse other packaged versions of Python (2.7, 3, 3.4), each of the have an IDLE folder with the associated IDLE IDE executable but the Python 3.6 folder after install does not have an IDLE folder nor does Python 3.6 have a separate folder in /usr/lib
as the other versions. Additionally, if I enter python
on the command line, it starts Python 2.7. If I run IDLE (3), it starts up IDLE for Python 3.4.
Update:
I blew away the SD card and reapplied the Raspbian image and went through the steps again, making certain I created a directory in path.
I can set the terminal to run Python 3.6 if I start the terminal app from the desktop but it still defaults to 2.7 from command line, and IDLE still defaults to 3.4.2.
How do I get Raspbian to use Python 3.6 as the default version from the terminal and when starting IDLE 3?