Author Topic: Python 3.6  (Read 2587 times)

jovpov

  • Newbie
  • *
  • Posts: 21
    • View Profile
Python 3.6
« on: October 16, 2018, 04:43:35 am »
I need Python version 3.6 for some project, any ideas how to upgrade existing 3.3?

vader

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Python 3.6
« Reply #1 on: October 16, 2018, 09:37:51 am »
Quote from: jovpov
I need Python version 3.6 for some project, any ideas how to upgrade existing 3.3?

I can't find 3.6 in the usual places. Your best bet is to probably compile it yourself. You can download the source from github. I had to compile 3.6 for an old ubuntu machine which didn't have it in the repos.

vader

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Python 3.6
« Reply #2 on: October 16, 2018, 10:21:54 am »
For a laugh, I downloaded the source to python  3.6.6 from python.org, and compiled it. It worked a charm, no problems - although I didn"t play with/modify the config. I installed it to /home/nemo/python so I could create a tarball.  It is too large to attach (46M), but you could easily do the compiling yourself. Install the gcc compiler, download the source from python.org, then do this:

start the terminal
if you downloaded the source to Downloads, go there (cd Downloads), and uncompress the file with:
tar xvf your_downloaded_filename
cd python3.6.6 (or whichever one you downloaded)
./configure
make
make test
sudo make install (if the test passed)

Hope this helps.