I had used pyenv to manage several Python versions. However, on macOS Big Sur, it didn’t work well. Here, I introduce a way to install Python 3.9.1 using installer which can be downloaded from official site.
Video
Install Python using installer
Visit official site and download installer. In my case, I chose macOS 64-bit Intel Installer.
Install the Python using downloaded installer. That’s it. Now you can use python3.9 and pip3.9 on terminal.
Upgrade pip3.9
Upgrade pip3.9 by the following command:
pip3.9 install --upgrade pip
(optional) Install pipenv
Install pipenv by the following command:
pip3.9 install --user pipenv
(optional) Install poetry
Alternatively, you can use poetry. Install poetry by the following command:
pip3.9 install --user poetry
That’s it. Now you can move to start Python project in my previous post.
—
This post is linked to my Youtube channel:https://www.youtube.com/channel/UC-SHOllZQsQFCsbL3BvP1rA
The content might be updated in the future.