Tested on:RPi3; Raspbian Stretch
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)

Installing Python3.6 on a Raspberry Pi

I’m mostly happy with older Python versions, but Python3.6 offers a new method for string generation, the f-string syntax, which i prefer over older methods.

Enter in the terminal

Start Python3 with

and enter in the IDE

Realpython f-string syntax introduction: https://realpython.com/python-f-strings/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


  1. Err, Houston – we have a problem. I’m running Domoticz home automation on my RP3 and was trying to update Python to 3.6 on above instructions, but as a side effect this killed my Domoticz.
    As per /usr/bin/python3 –version I’m still on 3.5.3
    Domoticz error messages e.g:
    Error: WebServer(HTTP) startup failed on address with port: 8080: bind: Address already in use
    Error: WebServer(HTTP) check if no other application is using port: 8080

    Error: #0 0x76e7851c in __waitpid (pid=2034, stat_loc=0x7eac69f8, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
    Error: #1 0x002d8840 in dumpstack_gdb(bool) ()
    … and so forth

    Any undo-advice would be highly appreciated, I’m really no pro on these

  2. hi I did what you said, it was successful yet, when I type in my Debian linux command prompt it returns “Python 2.7.13”

    Please help and absolutely fresh to coding or programming

    • Hmmm. I just tried it on my Raspi which runs Raspbian, which is a Debian derivate. Don’t know why it doesn’t work for you. Maybe you need to use the command python3.6 for now.

  3. i’ve installed 3.6.3, but when i run python3 i’m still going to 3.5 … how do i change this?


Time limit is exhausted. Please reload CAPTCHA.