r/learnpython • • Oct 22 '26

Removing 3.14 now that I have 3.15.1, on a mac?

How do I uninstall Python 3.14 from my mac (my copy, not the system version in /usr/bin)? I installed from the dmg on python.org. I'm now happy with 3.15, so I don't need 3.14 or its libraries.

Searching suggests:

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.14

cd /usr/local/bin && ls -l | grep "../Library/Frameworks/Python.framework/Versions/3.14" | awk '{print $9}' | xargs sudo rm

which looks fine to me, but I worry about missing something.

3 Upvotes

50 comments sorted by

3

u/Fabiolean Oct 23 '26

If you don’t know how to do this safely already, don’t try. It costs you nothing to leave it in place for now.

Look up the documentation or some tutorials on how to use the venv module to ensure your software is using the python version you want. There are legit reasons for keeping multiple versions installed at once.

0

u/foosion Oct 23 '26

Deleting the old python directory is easy. Deleting symlinks to that directory is what I'm less clear about. The above command identifies just 3.14 items (confirmed by replacing sudo rm with echo), but I want to make sure both the command is the right way to do it and that it will clean up all relevant traces. This is the first time I've dealt with the issue on a mac instead of windows. There don't seem to be meaningful changes in venv or uv on a mac compared to windows.

2

u/sjshuck Oct 23 '26

Those commands to remove look fine. But afterwards, DO NOT install 3.15 from a dmg. Use Homebrew.

After following the instructions, brew install python@3.15. And do what another commenter suggested and create virtual environments: python3.15 -m venv venv.

Good luck!

0

u/foosion Oct 23 '26

Thank you

uv seems better practice than venv.

3

u/Jello_Penguin_2956 Oct 23 '26

Yea UV will do just keep it mind it uses venv underhood so it's still good to know what venv does.

1

u/deep_soul Oct 23 '26

clean up that mess and setting up pyenv is the only correct answer

1

u/foosion Oct 23 '26

How to clean up the mess is the question.

1

u/udi503 Oct 23 '26

Install anaconda or miniconda

0

u/trekkie86 Oct 23 '26

I always manage python and other app versions with mise

-2

u/KittyKong Oct 22 '26

It's best practice to just use the system python binary to create virtual environments with whatever version you need. Upgrading the host python isn't really ideal...that is what the other comments are alluding to.

1

u/foosion Oct 23 '26

By host python do you mean the system python (/usr/bin/python3 on a mac, which is 3.9.6)?

I'm not touching that. I'm talking about the versions I've installed by downloading from python.org. I no longer need 3.14 and am a fan of cleaning up things on my drive I no longer need.

3

u/KittyKong Oct 23 '26

All of the above. Don't install python via dmg 

1

u/foosion Oct 23 '26

If I shouldn't install it, how do I remove it now that it's here?

4

u/KittyKong Oct 23 '26

Find and delete the binary and DMG.

To be clear you're asking a question of package management in MacOS, not of learning python.

1

u/foosion Oct 23 '26

The first command in the OP deletes the binary directory. The second command should delete symlinks to that directory.

Is there a better place to ask the question?

1

u/FerricDonkey Oct 23 '26

It is absolutely not best practice to use the ancient OS python for anything. Get a modern version of python, then use that for the basis of virtual environments. 

2

u/foosion Oct 23 '26

Agreed, but that's what MacOS is using and it seems bad form to change the system version rather than installing the current version outside the system space.

1

u/FerricDonkey Oct 23 '26

Exactly. What you are doing is correct, do not change the system version, install your own versions and use them instead. 

Wish I knew more about Mac to give you further advice, but mainly wanted to counter the "just use the system version", because that is incorrect advice. 

0

u/KittyKong Oct 24 '26

Using the system version to bootstrap your workflow is not bad advice. It is "I'm employed and work on EL boxes" advice.

Feel free to use Docker or setup a new venv that you can then setup additional venvs with if you want...

1

u/FerricDonkey Oct 24 '26

Please don't encourage people to use old, outdated, end of life, no longer security patched software. 

0

u/KittyKong Oct 23 '26

I wouldn't call 3.9.6 ancient...but okay...just use conda or docker to bootstrap the workflow.

2

u/FerricDonkey Oct 23 '26 edited Oct 23 '26

3.9 is end of life in one week [EDIT] last year. It came out 6 years ago. 3.15, 6 versions ahead, just came out. 3.9 is missing a huge number of features . 3.9 is ancient, and is not a good choice. 

0

u/aishiteruyovivi Oct 23 '26

Not even that: 3.9 is already EOL, in fact 3.10 just went EOL at the beginning of this month. Even putting aside features and bugfixes, keeping up to date can also be a matter of security - notably, as a pretty significant security issue very recently cropped up and prompting new releases of 3.13 through 3.15. 3.11/3.12 haven't gotten updates yet, seems there's more discussion needed to figure out how to best handle it, but anything 3.10 or lower almost certainly isn't getting any.

1

u/FerricDonkey Oct 23 '26

Ha, I googled it and misread the year of eol. Yeah, I never understand why people recommend old vulnerable software.

I am fortunate that my team has built a habit of rolling versions forward. We've been using 3.13 for production and also running tests against 3.14 for the last year. We will shortly switch to using 3.14 for production and also testing against 3.15. Which is actually a bit more conservative than I'd like, but is good enough that I can't actually complain. 

-1

u/KittyKong Oct 23 '26

Sure as hell beats 3.6 on RHEL9.6. Sometimes you just gotta use the tools you have to start with. But if you want to advocate for additional system admin to devs, a group who historically suck at it, by all means. ;-)

Edit: not to mention the hilariously large mountain of scientific software that is stuck on 3.8 lol

1

u/FerricDonkey Oct 23 '26

Well yeah, there's a reason I said don't use your garbage ancient OS python version. 

If your sysadmins can't get you a modern version of python, then they suck at their jobs. If it's your own computer, then get the modern version yourself.

I dunno what scientific software you're talking about, but if it's stuck on 3.8, then it's not maintained properly. The major scientific libraries I use (and even the ones I hate and don't use, but know about) always keep up with the major versions.

If you're writing your own software, you should absolutely not start it's life by being 6 years out of date. 

0

u/KittyKong Oct 23 '26

It is painfully obvious that a lot of the people on here are Windows devs lol

1

u/FerricDonkey Oct 23 '26

Uh, no. Do you think it's somehow prohibitively hard to install python on Linux or Mac? Frankly, if that were true, that would be a good argument for not using those operating systems for development. 

Fortunately it is not true. I develop on Linux at work. My hobby projects at home are done on windows, but actually using wsl a lot of the time. 

1

u/HommeMusical Oct 24 '26

Never use the system binary.

1

u/KittyKong Oct 24 '26

Unfortunately that's just not how it works when you are on a shared system. Y'all need to get out of your own dev box and touch prod for a moment. Hacky web devs the lot of you.

1

u/HommeMusical 29d ago

Unfortunately that's just not how it works when you are on a shared system.

How many people work on a shared system these days, and aren't running from inside a Docker, and can't build their own version of Python from source?

I spent a long time in my life programming on shared systems. But now virtual servers on line cost pennies a day, Docker and other virtualization technologies exist, and you can buy a full and powerful computer for $100.

-1

u/Almostasleeprightnow Oct 23 '26

Don’t upgrade the host but don’t use that one either. Just install the higher one elsewhere and use that one for everything

1

u/foosion Oct 23 '26

Yes, I'm not changing the host and have installed a higher one elsewhere and am using it for everything.

0

u/KittyKong Oct 23 '26

In my experience it's far easier to just use conda or a docker container to bootstrap that. But I work on RHEL boxes.

0

u/[deleted] Oct 23 '26

[removed] — view removed comment

-1

u/KittyKong Oct 23 '26

I get the same push back from graduate students. It is what it is.

8

u/[deleted] Oct 22 '26

[removed] — view removed comment

4

u/foosion Oct 22 '26

How does that remove the existing 3.14 files and links?

-1

u/_11_ Oct 22 '26

It doesn't. It points your projects at a specific version of python. 

2

u/foosion Oct 22 '26

Exactly. I want to reclaim the (limited) space and clutter of links. Pointing my projects to 3.15 is not an issue.

-1

u/[deleted] Oct 22 '26

[removed] — view removed comment

3

u/foosion Oct 22 '26

I don't ever want to use 3.14. I want to remove it from my computer.

If I had wanted 3.14, I'd use it with uv, but I don't want it.

If the commands I posted are correct, it's not a headache.

-1

u/[deleted] Oct 22 '26

[removed] — view removed comment

-3

u/foosion Oct 22 '26

6

u/[deleted] Oct 22 '26

[removed] — view removed comment

-6

u/foosion Oct 22 '26

If you don't know the answer of how to unistall then you don't know. It's OK.