Skip to content

Instantly share code, notes, and snippets.

@a1mzone
Last active January 5, 2024 08:27

Revisions

  1. a1mzone revised this gist Jan 5, 2024. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions python.md
    Original file line number Diff line number Diff line change
    @@ -14,8 +14,9 @@ sudo apt install software-properties-common
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update

    ### Update Default
    sudo update-alternatives --config python
    ### Add & Update Default
    sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
    sudo update-alternatives --config python3

    ### Virtualenv Wrapper
    sudo apt install virtualenvwrapper
  2. a1mzone revised this gist Jan 4, 2024. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions python.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    ### Compile

    git clone https://github.com/python/cpython
    git checkout <version>
    git checkout \<version\>

    ./configure --enable-optimizations
    make -j8
    @@ -20,7 +20,7 @@ sudo update-alternatives --config python
    ### Virtualenv Wrapper
    sudo apt install virtualenvwrapper
    sudo find / -name "virtualenvwrapper.sh"
    mkvirtualenv -p python<version> <name>
    workon <name>
    mkvirtualenv -p python\<version\> \<name\>
    workon \<name\>
    deacative
    rmvirtualenv <name>
    rmvirtualenv \<name\>
  3. a1mzone revised this gist Jan 4, 2024. No changes.
  4. a1mzone revised this gist Jan 4, 2024. 1 changed file with 13 additions and 2 deletions.
    15 changes: 13 additions & 2 deletions python.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,18 @@ git checkout <version>
    make -j8
    sudo make altinstall

    ### Install Ubuntu
    ### Install Precompiled on Ubuntu
    sudo apt install software-properties-common
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update
    sudo apt update

    ### Update Default
    sudo update-alternatives --config python

    ### Virtualenv Wrapper
    sudo apt install virtualenvwrapper
    sudo find / -name "virtualenvwrapper.sh"
    mkvirtualenv -p python<version> <name>
    workon <name>
    deacative
    rmvirtualenv <name>
  5. a1mzone revised this gist Jan 4, 2024. 2 changed files with 15 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions compile_python
    Original file line number Diff line number Diff line change
    @@ -1,6 +0,0 @@
    git clone https://github.com/python/cpython
    git checkout <version>

    ./configure --enable-optimizations
    make -j8
    sudo make altinstall
    15 changes: 15 additions & 0 deletions python.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # Python

    ### Compile

    git clone https://github.com/python/cpython
    git checkout <version>

    ./configure --enable-optimizations
    make -j8
    sudo make altinstall

    ### Install Ubuntu
    sudo apt install software-properties-common
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt update
  6. a1mzone created this gist Jun 23, 2020.
    6 changes: 6 additions & 0 deletions compile_python
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    git clone https://github.com/python/cpython
    git checkout <version>

    ./configure --enable-optimizations
    make -j8
    sudo make altinstall