The right way to setup Python on MacOS – The Devs in the Shed Blog
I use Python more and more regularly and each time I set up a new machine I go through the same steps to enable a clean and modular way to run multiple versions of Python, each time I forget a step and am left scratching my head, this time I decided to document those steps. The solution is pyenv. Pyenv allows us to install and manage as many versions of Python as I need and flip between them where required, it uses a convention to allow my terminal session to use a version on Python installed under my home directory rather then over writing the global install. In this example I am setting up my 2020 M1 MacBook pro, by default the Python version is: and I really want Python 3.10 for Pygame, and 3.9 for AWS Lambda, this is how you can accomplish that. To accomplish this we first start with Homebrew, If your reading this your likely familiar, if not Homebrew is a software manager that is primarily used for MacOs ( though I do use it on linux ) to install the software I require with ease.
I use Python more and more regularly and each time I set up a new machine I go through the same steps to enable a clean and modular way to run multiple versions of Python, each time I forget a step and am left scratching my head, this time I decided to document those steps. The solution is pyenv. Pyenv allows us to install and manage as many versions of Python as I need and flip between them where required, it uses a convention to allow my terminal session to use a version on Python installed under my home directory rather then over writing the global install. In this example I am setting up m
Explore this link on the map →