Skip to content

Instantly share code, notes, and snippets.

@basaks
Last active January 28, 2022 13:00

Revisions

  1. basaks revised this gist Feb 10, 2018. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -15,20 +15,20 @@ Download and untar the desired version:

    mkdir -p $HOME/opt
    cd $HOME/opt
    curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
    tar -xzf Python-3.6.0.tgz
    curl -O https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
    tar -xzf Python-3.6.4.tgz


    Install python3.6 while keeping python3.5 as the default python3 version on ubuntu 16.04.

    cd Python-3.6.0/
    ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
    cd Python-3.6.4/
    ./configure --enable-shared --enable-optimizations --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
    sudo make altinstall


    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.0
    Python 3.6.4

    Enjoy!
  2. basaks revised this gist Oct 7, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -15,20 +15,20 @@ Download and untar the desired version:

    mkdir -p $HOME/opt
    cd $HOME/opt
    curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0rc2.tgz
    tar -xzf Python-3.6.0rc2.tgz
    curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
    tar -xzf Python-3.6.0.tgz


    Install python3.6 while keeping python3.5 as the default python3 version on ubuntu 16.04.

    cd Python-3.6.0rc2/
    cd Python-3.6.0/
    ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
    sudo make altinstall


    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.0rc2
    Python 3.6.0

    Enjoy!
  3. basaks created this gist Jan 23, 2017.
    34 changes: 34 additions & 0 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    ## Install Python3.6 interpreter on ubuntu 16.04

    [From here](http://devmartin.com/blog/2016/04/creating-a-virtual-environment-with-python3.4-on-ubuntu-16.04-xenial-xerus/), we can pretty much follow the exact same procedure.


    On a terminal just do the following steps:

    Install dependencies:

    sudo apt install build-essential checkinstall libreadline-gplv2-dev \
    libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev \
    libbz2-dev openssl

    Download and untar the desired version:

    mkdir -p $HOME/opt
    cd $HOME/opt
    curl -O https://www.python.org/ftp/python/3.6.0/Python-3.6.0rc2.tgz
    tar -xzf Python-3.6.0rc2.tgz


    Install python3.6 while keeping python3.5 as the default python3 version on ubuntu 16.04.

    cd Python-3.6.0rc2/
    ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib"
    sudo make altinstall


    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.0rc2

    Enjoy!