Hướng dẫn uninstall python ubuntu

To list all python versions in default locations

ls /usr/bin/python*

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

Also, see //docs.python-guide.org/starting/install3/linux/ or install python3.8 //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

Following this guide Testing Deployment Using a Staging Site, I have installed python 3.6 on Ubuntu 16.04 using:

Nội dung chính

  • Not the answer you're looking for? Browse other questions tagged 16.04 python or ask your own question.
  • Not the answer you're looking for? Browse other questions tagged python ubuntu anaconda ubuntu-18.04 or ask your own question.
  • How do I remove a specific version of Python in Linux?
  • How do I uninstall Python 3.6 from CentOS 8?
  • How do I uninstall Python 3.9 from Ubuntu?
  • How do I install Python 3.6 on Ubuntu?

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.6

Unfortunately I now want to use the anaconda package manager, and so to avoid a conflict I'd like to remove all traces of my upgrade. How?

asked May 3, 2017 at 12:59

user1592380user1592380

1,6634 gold badges24 silver badges31 bronze badges

7

Warning: This will break Ubuntu 18.04 and 18.10. These instructions apply to the specific situation described in the question, on Ubuntu 16.04.

Warning: I have tested this solution, but not very thoroughly. Make a backup, and proceed with caution.

  1. Remove the repo:

    sudo add-apt-repository --remove ppa:fkrull/deadsnakes
    
  2. Refresh apt cache:

    sudo apt-get update
    
  3. Remove the package:

    sudo apt-get remove --purge python3.6
    

answered Aug 1, 2017 at 17:15

5

I followed the instructions above [1:Remove the repo 2:Refresh apt cache 3:Remove the package and found that a lot of my Linux tools and APPS "Disappeared". Not being an expert in identifying and reinstalling each on demand I opted for a full re-install and update. The advise is to make periodic image and backups more like restore points so that you don't have to start from scratch. Make note of your customizations if you are not already documenting the changes to your machine.

answered Sep 1, 2019 at 23:50

1

Not the answer you're looking for? Browse other questions tagged 16.04 python or ask your own question.

Both Python 2.7 and 3.6 are installed by default in Ubuntu 18. But I wish to use the Anaconda Python with conda package manager. To avoid any conflicts I wish to completely remove the default Python 3.6. Are there any way to do that? Please help.

akshat

1,2071 gold badge8 silver badges22 bronze badges

asked May 11, 2018 at 18:12

4

Don't do that , just don't.
you'll have regrets a lot of it.
And I'm serious.
A lot of things will deleted,but by the way, if you already done that don't worry, there is a solutions.
Just run this code in your terminal

sudo apt install ubuntu-desktop

And if you want you can run this one too

#ubuntu-18.04.1
sudo apt install $[ curl //releases.ubuntu.com/18.04/ubuntu-18.04.1-desktop-amd64.manifest | sed -e 's#\t.*##g' ]

Link for reference: //askubuntu.com/questions/1087267/how-do-i-reinstall-the-software-packages-that-came-with-ubuntu-18-04

answered Feb 10, 2019 at 23:52

João MeloJoão Melo

3773 silver badges11 bronze badges

1

Ubuntu 18.04 requires python 3.6 to function. If you remove python 3.6, you won't be able to log in after a restart. Ubuntu will still have python 3.6minimal, even after uninstalling python 3.6. so you will have to remove both. Once that is done, you'll get an error that looks like this.

//itsfoss.com/failed-to-start-session-ubuntu-14-04/

You can follow the above steps if you break Ubuntu.

answered Aug 1, 2018 at 8:13

PrometheusPrometheus

1,04413 silver badges20 bronze badges

0

Not the answer you're looking for? Browse other questions tagged python ubuntu anaconda ubuntu-18.04 or ask your own question.

How do I remove a specific version of Python in Linux?

You can remove any version of Python installed on your computer in three simple steps..

Step #1: Navigate to the Control Panel..

Step #2: Navigate to the Uninstall Menu..

Step #3: Uninstall Python..

Step #4: Remove Python from Path..

Step #1: Remove Python from Applications..

Step #2: Remove Python from /Library..

How do I uninstall Python 3.6 from CentOS 8?

Uninstall Python on CentOS 8 Use DNF to uninstall any Python version. The command uninstalls Python 3 and removes related dependencies. Confirm you want to remove the listed packages by typing y and hit Enter. Again, verify you want to remove the package with y and Enter.

How do I uninstall Python 3.9 from Ubuntu?

Install synaptic using sudo apt install synaptic..

Open synaptic..

Search for "python 3.9".

Right click on "python 3.9" and Select "mark for complete removal".

Click apply..

How do I install Python 3.6 on Ubuntu?

How to Install Python 3 on Ubuntu 18.04 or 20.04.

Step 1: Update Local Repositories..

Step 2: Install Supporting Software..

Step 3: Download the Latest Version of Python Source Code..

Step 4: Extract Compressed Files..

Step 5: Test System and Optimize Python..

Step 6: Install a Second Instance of Python [recommended].

Chủ Đề