How to completely remove Python from a Windows machine?
You will also have to look in your system path. Python puts itself there and does not remove itself: http://www.computerhope.com/issues/ch000549.htm
Your problems probably started because your python path is pointing to the wrong one.
How to uninstall Python and all packages
If you uninstall from the control panel, it should remove all packages with it. To ensure that your path doesn't contain your old python when you try and use anaconda, you should remove Python from your path. In windows 10:
- From desktop go bottom left and find the menu.
- Click system, then Advanced System Settings
- In this window, go to the Advanced tab and click on the environment variables button.
- From there you can edit your Path, with the edit button.
- Make sure there is no reference to Python here. Also, all variables are separated by a ; so make sure all syntax is good before saving.
- Install anaconda and at the end of the install it should ask if you want to make it the default Python. Say yes and every time you or another program asks for Python, it will get pointed to anaconda.
How to completely remove Python from a Windows machine?
You will also have to look in your system path. Python puts itself there and does not remove itself: http://www.computerhope.com/issues/ch000549.htm
Your problems probably started because your python path is pointing to the wrong one.
How do I properly uninstall/fix python 3.8.5 when the installer doesn't work?
I had to remove the registry key from
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
with information from this article. Then I brought up the uninstaller prompt again, which still showed the "Modify, Repair & Uninstall" options from earlier, but I right-clicked the icon on the taskbar (When a program is open) and clicked on properties, finding the path to that executable:
%userprofile%\AppData\Local\Package Cache\{de694e50-e0d0-48a5-9a7a-56fd037154e2}
I deleted that file, and then when I clicked "uninstall" in control panel again, it said if I'd like to remove it from the program list as it couldn't find it.
After that, the installer now can't see Python installed.
how to completely remove Python and all its libraries
I've found this as an alternative solution. It's a more graceful removal of libraries
pip freeze | xargs pip uninstall -y
In case you have packages installed via VCS, you need to exclude those lines and remove the packages manually (elevated from the comments below):
pip freeze | grep -v "^-e" | xargs pip uninstall -y
How to completely uninstall python 2.7.13 on Ubuntu 16.04
caution : It is not recommended to remove the default Python from Ubuntu, it may cause GDM(Graphical Display Manager, that provide graphical login capabilities) failed.
To completely uninstall Python2.x.x and everything depends on it. use this command:
sudo apt purge python2.x-minimal
As there are still a lot of packages that depend on Python2.x.x. So you should have a close look at the packages that apt wants to remove before you let it proceed.
Thanks, I hope it will be helpful for you.
Related Topics
Bold Formatting in Python Console
Efficient Way of Having a Function Only Execute Once in a Loop
How to Calculate Average a Dictionary from List of Dictionary Data
Use Variable as Key Name in Python Dictionary
How to Remove/Delete a Virtualenv
Python - Automatically Adjust Width of an Excel File'S Columns
Pandas Merge - How to Avoid Duplicating Columns
How to Overwrite the Previous Print to Stdout
How to Install Python Packages from the Tar.Gz File Without Using Pip Install
Counting the No. of Black to White Pixels in the Image Using Opencv
Update Json Element in Json Object Using Python
Comparing Two Json Objects Irrespective of the Sequence of Elements in Them
Print Floating Point Values Without Leading Zero
Plot Different Dataframes in the Same Figure