Generally, there are three options to remove Python from a Mac. You can do this using the Terminal command line, use a special uninstaller, or manually find and remove its support files for its complete removal. Some users face issues when trying to get rid of the software package. Read this step-by-step guide on how to safely uninstall Python on your Mac and prevent any issues.
Contents:
- Uninstall Python manually.
- Uninstall Python using the Terminal.
- Uninstall Python using an uninstaller.
Before we start, watch the video on how to quickly delete Python.
How to uninstall Python 3 manually
To completely and safely remove the version 3 of the software, please follow the steps below:
- First, quit the application and close all its running processes in the background. This step is very important for a safe deletion of the program.
- Also, we recommend that you open Activity Monitor and check whether some processes are still active. Click the “x” button to close the app processes.
- Then go to the Application folder in Finder and move Python to Trash. Please, make sure you remove the uninstall package entirely, not just separate files.
- Now we’ve come closer to the last important step – to find and remove all the service files Python has created while you were using it. The service files are stored in the Library folder.
In our case, we have found the following files in the following subfolders of the Library folder:
Also, there are some hidden files in the User’s folder. You can view them only if you make all your hidden files visible. For this, use a free application Funter, which allows you to show and hide hidden files with one click. Here’s the list of hidden files we found:
Once again, you would need to find all the service files of the game and move them to Trash for a complete uninstallation. For this, you need to show hidden files using the Funter app.
But we understand that this task can be too complicated and just a waste of time because there are other ways to uninstall the program. Read on to learn more.
How to remove Python using Terminal
If you are familiar with the Terminal app, you can use command lines to delete Python from your Mac. For this, follow these steps:
- Remove the app to Trash.
- Open the Terminal app and type the following command in the window: ~ [user name] sudo rm -rf /Applications/Python\ 3.6/
- It will require you to enter your administrator password to confirm the deletion.
Please note, we strictly do not recommend using this uninstalling method to users who are unfamiliar with Terminal commands.
If you are looking for the fastest and safest way to remove Python from your Mac, you’d better use a special tool App Cleaner & Uninstaller to handle this task.
How to uninstall Python on macOS with a few clicks
App Cleaner & Uninstaller is your efficient helper to remove all Python versions on Mac quickly and easily. App Cleaner & Uninstaller automatically finds all the service files of apps so that you can be sure that the app was removed on your Mac completely without leaving any traces.
Also, if you have already deleted some apps the regular way, you can check whether their service files still remain on your hard drive, and you can get rid of them with several clicks. You can download App Cleaner & Uninstaller from our website. Here’s how to use the uninstaller:
- Launch App Cleaner & Uninstaller. In the left section of the window, you will see all the apps installed on your system.
- Select Python in the left panel. If you swithc on the Expert mode, you can view the list of all its related files in the right panel.
- Then all you need is to click the Uninstall button and confirm the deletion.
- Also note, that App Cleaner & Uninstaller moves deleted files to Trash, so don’t forget to empty the Trash folder.
That’s all. We hope that it helped you to delete the app from your Mac computer and solve your uninstall issues. Let us know if you still have questions.
FAQs about Python
What is Python?
Python is an extremely simple and flexible language that allows developers to effectively solve the problems of scripting, rapid prototyping, and research programming. The software began to be developed in the late eighties by the employees of the Dutch National Research Institute of Mathematics and Computer Science Guido van Rossum. Today, the support for the software is carried out by a team of developers of the same institution.
Python is used not only by IT professionals, developers, and engineers but also by people involved in data mining and analytics in the field of Big Data.
Please note, Apple pre-installed and provided Python 2.7 in Mac OS X 10.8. If you use older versions of the Mac operating system but downloaded a new version 3 of the app from its official website, then you should be careful when trying to uninstall the program.
Never modify or delete a folder named Python and any files related to the pre-installed version by Apple.
Where is Python installed on a Mac?
Apple provides a pre-installed version of the app which you can find by the following path: /System/Library/Frameworks/Python.framework.
However note, that path location may vary depending on the software version you have on you Mac and the installation method you used. For example, if you have the version 3, you can find its path using the Terminal and this command:
import sys; print(sys.executable)
Terminal will show the path to the Python executable file.
Why can’t I delete Python from my Mac?
If you have the already pre-installed Python on your system, you won’t be able to delete it. It is used by some macOS utilities and uninstalling Python can cause system errors. If you installed it by yourself, you can use App Cleaner & Uninstaller from Nektony to find its leftover files. Before trying to remove the app, ensure that you closed it and you have user rights to uninstall apps on your Mac.
How do you check if I have Python installed on my Mac?
To check if the app is installed on your Mac, use the Terminal command line. For example, type python3 and press Enter. If it is installed on your system, you will see a message like “Python version 3.x.x” showing you the version of app you have.
Keep on writing, great job!|
Thanks!