Python is one of the programming languages loved and used by many people worldwide. Compared to other programming languages, it has simplified syntax and is not complicated. On this page, you will learn how to Uninstall Python from your Windows and Mac computers.
When Do I Uninstall Python?
You can uninstall Python when you face the following two situations:
If the current Python version (which is running on the computer) is outdated, you have to uninstall the existing one to reinstall the latest version of it.
Python is not a compiled language. So, you can delete Python from your computer if you find any difficulties while using it.
To know more about uninstalling Python, continue reading this page.
Just like uninstalling other programs from your computer, you can uninstall Python. However, the uninstallation procedure may vary based on your OS type.You can uninstall Python completely from your Windows or Mac computer using the Control Panel window or the Applications folder, respectively. But first, you need to identify the Python version installed on your computer. You can do it by using the CMD or Terminal window.
Uninstall Python On Windows
Identifying the version
Open the CMD window on your computer.
Type the python –V command in the opened window. //This command will help you know the current Python version installed on your computer.
Uninstall Python Using Control Panel
Open the Control Panel window.
Choose the Category option from the View by drop-down menu.
Locate the Programs option and click the Uninstall a program command line beside it.
The Programs and Features screen displaying the list of applications installed on your Windows computer will open.
Locate and select the Python application. (You can also use the search field available on the opened screen to search and select the application).
After selecting the application, click the Uninstall button.
Uninstall the Python application by following the instructions displayed on the screen.
Finally, check whether the application is uninstalled successfully using the CMD window.
To do so, run the python –V command again in the CMD window.
Now, if you receive the “python is not recognized as an internal or external command…” message, it signifies that the application is uninstalled successfully.
Uninstall Python On Mac
Identify the Python version
Type python3 –version.
Now, the current version of Python will be displayed on the screen.
Type which python3. // This command will help you know the application's installation path.
Copy the installation path address displayed on the screen.
Uninstall Python Using Finder
Open Finder followed by the Folder shortcut window.
Paste the copied path address and click Go.
Locate the Python file in the opened window.
Right-click on the file and click Delete.
Type your Mac computer’s password if prompted.
Similarly, delete all the files related to Python.
Empty the Trash folder.
Finally, re-run the python3 –version command in Terminal to check whether Python is uninstalled.
You can be sure that the uninstallation is successful if you receive the “Failed to locate python3” message.
Contact us to know more about uninstalling Python.
Our website offers only instructions for a learning purpose and does not duplicate any brands or product manufacturers, including their images, content, or any trademarks as provided in Disclaimer. The company reserves the legal right to change any content on the website at any time. We are not liable for the data or file loss on your device in case of any third-party intervention occurs without our knowledge.