The former is a much more common solution as it is way simpler, but we will talk about both options equally. There are two basic ways of running a Python script on a Mac:
But you need to remember one thing before you initiate some heavy lifting with Python – the program might require some serious processing power and you should always look for useful tips on how to cool down your Mac when you’ve been programming too hard. We already mentioned Python’s native integrated development environment, aka IDLE, as it is the easiest way for new clients to start using Python on a Mac.
Even if you download the newer program, both versions remain on your computer simultaneously.
As soon as you install Python, the program itself will share the framework’s location with your shell path.īear in mind that users who want to keep the pre-installed version of Python should never change or modify the original framework because it is completely in control of Apple. The framework is marked as /Library/Frameworks/amework.
Python is a powerful programming tool, but it becomes a different kind of beast when you use it on a Mac. With this setup, you'll be able to keep your system macosx python and switch to whatever new version of python you want available through pyenv.Last Updated: Wednesday 29 th December 2021 Note: you may need to create a new shell or reload your bash_profile in your current shell for the pyenv initialization to do its thing (set up shims). Now install some python using pyenv and then switch to it with the pyenv local command (you can see all your versions with pyenv versions). If command -v pyenv 1>/dev/null 2>&1 then