Skip to content

Instantly share code, notes, and snippets.

@logantect
Forked from zhensongren/uninstall_python3.MD
Created July 6, 2022 06:59
Show Gist options
  • Select an option

  • Save logantect/d316fd6635d9cc72d927b41472fb1507 to your computer and use it in GitHub Desktop.

Select an option

Save logantect/d316fd6635d9cc72d927b41472fb1507 to your computer and use it in GitHub Desktop.

Revisions

  1. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,6 @@ sudo apt-get install python3
    Also, see https://docs.python-guide.org/starting/install3/linux/
    or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/

    ## ModuleNotFoundError: No module named '_sqlite3'
    sudo apt-get install libsqlite3-dev
    ./configure --enable-loadable-sqlite-extensions && make && sudo make install
    ## ModuleNotFoundError: No module named '_sqlite3'.
    - sudo apt-get install libsqlite3-dev
    - ./configure --enable-loadable-sqlite-extensions && make && sudo make install
  2. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,8 @@ sudo apt-get update
    sudo apt-get install python3

    Also, see https://docs.python-guide.org/starting/install3/linux/
    or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/
    or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/

    ## ModuleNotFoundError: No module named '_sqlite3'
    sudo apt-get install libsqlite3-dev
    ./configure --enable-loadable-sqlite-extensions && make && sudo make install
  3. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -17,4 +17,5 @@ sudo apt-get update

    sudo apt-get install python3

    Also, see https://docs.python-guide.org/starting/install3/linux/
    Also, see https://docs.python-guide.org/starting/install3/linux/
    or install python3.8 https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/
  4. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,6 @@ sudo apt-get purge --auto-remove python3.5
    ## How to install new version of python
    sudo apt-get update

    sudo apt-get install python3.7
    sudo apt-get install python3

    Also, see https://docs.python-guide.org/starting/install3/linux/
  5. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## To list all python versions in default locations
    ls /usr/bin/python*
    ## To remove just python3 package
    sudo apt-get remove python3.5

  6. @zhensongren zhensongren revised this gist Feb 28, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,5 @@ sudo apt-get purge --auto-remove python3.5

    ## How to install new version of python
    sudo apt-get update

    sudo apt-get install python3.7
  7. @zhensongren zhensongren created this gist Feb 28, 2020.
    15 changes: 15 additions & 0 deletions uninstall_python3.MD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    ## To remove just python3 package
    sudo apt-get remove python3.5

    ## plus it's dependent packages
    sudo apt-get remove --auto-remove python3.5

    ## plus configuration and/or data files of python3
    sudo apt-get purge python3.5

    ## both configuration and/or data files of python3.5 and it's dependencies
    sudo apt-get purge --auto-remove python3.5

    ## How to install new version of python
    sudo apt-get update
    sudo apt-get install python3.7