Python Forum
Impossible to cleanly uninstall Python 3.8.9
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Impossible to cleanly uninstall Python 3.8.9
#1
I am using a Mac M1 running macOS Monterey 12.5.1.

[Context]

Trying to perform a clean install a package called FreqTrade, I run into the following error:

"ERROR:: Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the HDF5_DIR environment variable or by using the --hdf5 command-line option."

Since I have been able to install it before and now I can't, I wanted to do a clean wipe of all Python packages installed (via homebrew and via Standard Application download from Python website)

I have now uninstalled everything python related both in my Applications folder as well as in Homebrew, however, whenever typing "python3 --version" in my CLI, it shows a version of Python 3.8.9 installed.

Issue

I am unable to understand where this version is installed so far. Hence I don't know how to remove it.

I have followed various pages that explain how to do so, such as this one and yet the version of Python 3.8.9 keeps popping whenever doing "python3 --version"

'Funnily' enough, whenever I try to run the script to install FreqTrade package again, it says that no version of Python is installed (which makes sense since I felt I had uninstalled them all).

Any pointers? I am at the point where I'd almost reset my Mac but I'd like to avoid that if possible :)

Thanks a lot in advance.

Have a great day,

François.

Attached Files

Thumbnail(s)
   
Reply
#2
Disclaimer: I know nothing about Mac OS
(Sep-01-2022, 07:16 AM)Ftaniere Wrote: I am unable to understand where this version is installed so far. Hence I don't know how to remove it.
If you want to know where python is, run
Output:
python3 -c "import sys; print(sys.executable)"
Reply
#3
Python 3.8.9 should be the default version macOS Monterey 12.5.1.
You should just leave default version alone and not uninstall it,this is always the advice for default Python version on Mac and Linux.
It would probably go ok to remove it,there has been many problems trough the years as OS had dependencies on default Python version.

So what to do?
Just leave default alone and install a new version eg Install Python 3 on macOS (Monterey 12.5)
The right and wrong way to set Python 3 as default on a Mac
I like the option best in last link where use pyenv(a safe and easy way to install newest Python versions(or eg Anaconda) and also switch between versions).
I don't use Mac as info.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Uninstall unused COM ports windows 10 adbrooker 1 2,042 Sep-22-2021, 03:16 AM
Last Post: Larz60+
  Formatting json cleanly Daring_T 0 1,200 Nov-19-2020, 10:39 PM
Last Post: Daring_T
  How to fully uninstall Python from Windows? Winfried 6 10,579 May-27-2020, 10:16 PM
Last Post: snippsat
  I can't uninstall chatterbot? Piethon 9 6,799 Jul-20-2019, 09:42 AM
Last Post: Piethon
  impossible to exit from the file sylas 8 4,312 Sep-13-2018, 02:14 PM
Last Post: sylas
  Do I need to uninstall my current Python distribution (3.7) to install Anaconda? Tim 2 23,203 Jul-10-2018, 03:03 PM
Last Post: Tim
  Even if Atom is on the whisker menu, impossible to run it sylas 9 4,293 Jun-21-2018, 07:32 AM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020