Skip to content

Instantly share code, notes, and snippets.

@itcnj
Forked from dbinoj/python38.md
Created January 4, 2022 00:38
Show Gist options
  • Select an option

  • Save itcnj/fa58d3aa4100c48ead96881a9a398e6d to your computer and use it in GitHub Desktop.

Select an option

Save itcnj/fa58d3aa4100c48ead96881a9a398e6d to your computer and use it in GitHub Desktop.

Revisions

  1. @dbinoj dbinoj revised this gist Aug 10, 2020. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions python38.md
    Original file line number Diff line number Diff line change
    @@ -17,20 +17,20 @@ Download and untar the desired version:

    mkdir -p $HOME/opt
    cd $HOME/opt
    curl -O https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
    tar -xf Python-3.8.3.tar.xz
    curl -O https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz
    tar -xf Python-3.8.5.tar.xz


    Install python3.8 while keeping python3.6 as the default python3 version on ubuntu 18.04.

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


    Check it was installed properly:

    >> python3.8 -V
    Python 3.8.3
    Python 3.8.5

    Enjoy!
  2. @dbinoj dbinoj revised this gist May 29, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion python38.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,9 @@ 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
    libbz2-dev openssl libffi-dev

    sudo ldconfig

    Download and untar the desired version:

  3. @dbinoj dbinoj renamed this gist May 29, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @dbinoj dbinoj revised this gist May 29, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion python36.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Install Python3.6 interpreter on ubuntu 18.04
    ## Install Python3.8 interpreter on ubuntu 18.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.

  5. @dbinoj dbinoj revised this gist May 29, 2020. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Install Python3.6 interpreter on ubuntu 16.04
    ## Install Python3.6 interpreter on ubuntu 18.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.

    @@ -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.5/Python-3.6.5.tar.xz
    tar -xf Python-3.6.5.tar.xz
    curl -O https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
    tar -xf Python-3.8.3.tar.xz


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

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


    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.5
    >> python3.8 -V
    Python 3.8.3

    Enjoy!
  6. @dbinoj dbinoj revised this gist May 19, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion python36.md
    Original file line number Diff line number Diff line change
    @@ -29,6 +29,6 @@ Install python3.6 while keeping python3.5 as the default python3 version on ubun
    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.3
    Python 3.6.5

    Enjoy!
  7. @dbinoj dbinoj revised this gist Apr 25, 2018. No changes.
  8. @dbinoj dbinoj revised this gist Apr 16, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -15,13 +15,13 @@ Download and untar the desired version:

    mkdir -p $HOME/opt
    cd $HOME/opt
    curl -O https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
    tar -xf Python-3.6.3.tar.xz
    curl -O https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
    tar -xf Python-3.6.5.tar.xz


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

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

  9. @dbinoj dbinoj revised this gist Oct 10, 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.2/Python-3.6.2.tar.xz
    tar -xf Python-3.6.2.tar.xz
    curl -O https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
    tar -xf Python-3.6.3.tar.xz


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

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


    Check it was installed properly:

    >> python3.6 -V
    Python 3.6.2
    Python 3.6.3

    Enjoy!
  10. @dbinoj dbinoj revised this gist Aug 18, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -21,14 +21,14 @@ Download and untar the desired version:

    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"
    cd Python-3.6.2/
    ./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib" --enable-optimizations
    sudo make altinstall


    Check it was installed properly:

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

    Enjoy!
  11. @dbinoj dbinoj revised this gist Aug 18, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions python36.md
    Original file line number Diff line number Diff line change
    @@ -15,8 +15,8 @@ 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.2/Python-3.6.2.tar.xz
    tar -xf Python-3.6.2.tar.xz


    Install python3.6 while keeping python3.5 as the default python3 version on ubuntu 16.04.
  12. @basaks 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!