I'd recommend heading over to the Python website and downloading Python from there. Just follow all the steps you are given which should be quite easy to follow and you have Python installed!
Answer from user13785870 on Stack OverflowI'd recommend heading over to the Python website and downloading Python from there. Just follow all the steps you are given which should be quite easy to follow and you have Python installed!
Have you tried this script /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" on the homepage.
And then you can do brew install [email protected] or brew install python.
Homebrew is an OSS software with codebase available in github, feel free to do the security checks and submit the hackerone reports.
Happy to answer any specific question.
Videos
Hi. I just want to ask if there's something like a "safe" way to install Python 3 on Macbook Air m1. I'm learning Python right now, and MBA has Python 2.7 something version.
Python's great, everyone cheers on Python, every weird essential desktop application at the office relies on a Python install, every analyst who has hit the limits of Excel wants to use Python. I don't see anyone really talking about the security implications of having a modular scripting stack with a history of add-on compromise installed on every production workstation.
How do you secure a Python install, what do you allow in it, and how do you cope with the eleventy hundred Python modules users claim they need?
I just installed Python 3 using the installer from Python.org and have a few questions about some fundamental Python/OS concepts. I'm on macOS 12.6 (Monterey). These might be a mixture of OS questions and Python questions...
Python vs. Python3 command
I am positive that I don't have any other versions of Python installed on my machine other than Python 3.10. The 'python' command does nothing in the terminal window but 'python3' does. Why is that? Can I change something so that I can use 'python' instead? I think I may need to do something with my PATH or something in zsh?
SSL Root Certificates
During installation, the Python installer mentions the ability to install SSL Root Certificates. What are these and why are they necessary?
Thanks!
What do you think is the best way to install and maintain python and Jupyter lab on Mac in 2025?
It’s a mess on my current machine. Quickly running python in a terminal for a quick job uses a different version with different packages than Jupyter lab. Typing “python3” in the terminal doesn’t default to the most recent. At some point anaconda was installed.
What’s the cleanest way for a new machine to have an organized python environment? 90% of what I do is in Jupyter lab.
No, on Apple Macs being shipped with Big Sur, Python 2 and Python 3 are both still included.
$ which python
/usr/bin/python
$ python --version
Python 2.7.16
$ which python3
/usr/bin/python3
$ python3 --version
Python 3.8.2
This is on an M1 Mac mini running macOS Version 11.0.1.
No, it didn't get removed in Catalina, nor in Big Sur, and not even on the initial release of Monterey, but finally in macOS Monterey 12.3 it does get removed: https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python
Update: @Bemipefe confirmed that python did get removed even when just upgrading (and not doing a clean install) from macOS 12.2 to 12.3.
So, I ended up removing all python installations, and reinstalling things via Homebrew.
which python--->/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonDelete the entire Python.framework directory from/Library/Frameworks.which python3--->/usr/local/bin/python3Delete the entire python3 directory.I was a bit nervous about the symlinks. I initially renamed the ones that were obviously going to cause me trouble. It turns out that was unnecessary. Instead, just use:
$ brew doctor Warning: Broken symlinks were found. Remove them with 'brew prune': /usr/local/bin/python-32 /usr/local/bin/python2-32 /usr/local/bin/python2.7-32 /usr/local/bin/python2_DNU /usr/local/bin/python_DNU /usr/local/bin/pythonw-32 /usr/local/bin/pythonw2-32 /usr/local/bin/pythonw2.7-32So,
brew prune(orbrew cleanup --prunein newer versions of Homebrew) worked perfectly. It removed all of the above symlinks.Reinstall python and python3 via homebrew. All done.
At no time did I touch the python installation located within the /System folder.
Oh, and to be clear. The answer to the original question is
Yes, you can trust the old references, as written! That guidance is still valid.
My Python version was 3.6, I wanted to upgrade to 3.7 (In case you have similar requirements). I am using macOS version 10.12.6 and simply uninstalling and re-installing worked for me:
brew uninstall --ignore-dependencies python3
Then:
brew install python3
and done:
python3
Python 3.7.2 (default, Jan 13 2019, 12:51:54)
[Clang 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.