Skip to content

Instantly share code, notes, and snippets.

@molcay
Last active August 6, 2019 13:01
Show Gist options
  • Select an option

  • Save molcay/26dbd1aa9a6efcac026f65ff992c824d to your computer and use it in GitHub Desktop.

Select an option

Save molcay/26dbd1aa9a6efcac026f65ff992c824d to your computer and use it in GitHub Desktop.

Revisions

  1. molcay revised this gist Aug 6, 2019. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion install_python3.7.4.sh
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,9 @@ cd Python-3.7.4

    make -j $(nproc)

    sudo make altinstall
    sudo make altinstall

    # BONUS
    sudo ln -S /usr/local/bin/pip3.7 /usr/local/bin/pip
    sudo pip install --upgrade pip
    pip install --user --upgrade pipenv
  2. molcay revised this gist Aug 6, 2019. 8 changed files with 0 additions and 9 deletions.
    1 change: 0 additions & 1 deletion 1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    sudo apt update -qq
    1 change: 0 additions & 1 deletion 2.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl
    1 change: 0 additions & 1 deletion 3.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    mkdir -p /opt/Downloads && cd /opt/Downloads
    1 change: 0 additions & 1 deletion 4.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
    2 changes: 0 additions & 2 deletions 5.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +0,0 @@
    tar xf Python-3.7.4.tar.xz
    cd Python-3.7.4
    1 change: 0 additions & 1 deletion 6.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    ./configure - enable-optimizations
    1 change: 0 additions & 1 deletion 7.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    make -j $(nproc)
    1 change: 0 additions & 1 deletion 8.sh
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    sudo make altinstall
  3. molcay revised this gist Aug 6, 2019. 8 changed files with 9 additions and 0 deletions.
    1 change: 1 addition & 0 deletions 1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo apt update -qq
    1 change: 1 addition & 0 deletions 2.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl
    1 change: 1 addition & 0 deletions 3.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    mkdir -p /opt/Downloads && cd /opt/Downloads
    1 change: 1 addition & 0 deletions 4.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
    2 changes: 2 additions & 0 deletions 5.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    tar xf Python-3.7.4.tar.xz
    cd Python-3.7.4
    1 change: 1 addition & 0 deletions 6.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ./configure - enable-optimizations
    1 change: 1 addition & 0 deletions 7.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    make -j $(nproc)
    1 change: 1 addition & 0 deletions 8.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    sudo make altinstall
  4. molcay created this gist Aug 6, 2019.
    16 changes: 16 additions & 0 deletions install_python3.7.4.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    sudo apt update -qq

    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl

    mkdir -p /opt/Downloads && cd /opt/Downloads

    curl -O https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz

    tar xf Python-3.7.4.tar.xz
    cd Python-3.7.4

    ./configure - enable-optimizations

    make -j $(nproc)

    sudo make altinstall