How to remove all old installs of Python on iMac M1

Just installed 3.12.0 but still see folders 3.9 and 3.10. What can I safely remove?

See 5. Using Python on a Mac — Python 3.12.0 documentation

Many thanks Barry - very informative. Just a further question; I believe Numpy and Matlab addons are not currently working on version 3.12? Is this true?

You can check the status on the packages PyPI page.
I just web search for pypi numpy and get to this page numpy · PyPI

If you look near the bottom of the page you can see a section Meta
where it says Requires: Python <3.13, >=3.9 which means that it does support 3.12

I do know how to check matlab as it not clear to me what the package name is.
But I’m sure you know it.

Hope that helps.

Again many thanks. I’m not sure if this is the correct place to ask, but I have Python3 ver 3.12.0 installed and IDLE shell shows 3.12.0. I can write and run simple programs using IDLE. However if I write a Python script and run it in Terminal, it will also run, but when using Python --version it shows 3.9.7. Not sure whats going on here. Again using iMac M1.

Please start a new topic as this is a new topic.