Do you already have non-Homebrew Python installed? If you have a need for several legacy versions of Python, skip this step. If all went well, you should now be able to check the Homebrew version: $ brew -version Homebrew 2.2.14 Homebrew/homebrew-core (git revision 118be0 last commit ) Homebrew/homebrew-cask (git revision 656ce last commit ) Step 2. When Xcode finishes, this command will install Homebrew: $ ruby -e "$(curl -fsSL )" This will probably ask for your password and may take awhile depending on whether you already have any Xcode components installed already. Installing Homebrewįirst, we’ll install a bit of Apple’s Xcode, which Homebrew requires, and then Homebrew. If you don’t see something like that and instead Bash says -bash: brew: command not found, then you need to install Homebrew. Open a terminal and find out whether it is installed by checking the version: $ brew -version Homebrew 2.2.14 Homebrew/homebrew-core (git revision 118be0 last commit ) Homebrew/homebrew-cask (git revision 656ce last commit ) Since we’re using Homebrew, or brew, to keep Python up-to-date, it needs to be installed. We’ll need to see where you’re starting from in order to get setup correctly. If you’re setting up your Mac from scratch, my article Zero to Hero: Set Up Your Mac for Software Development will guide you through the whole process. However, if you require nuanced versioning or multiple versions of Python, check out my article on pyenv: Multiple version Python development on Mac. This is a good one-size-fits-all solution. NOTE: In this opinionated story, I suggest that the “right” way of doing Python 3 on macOS is to have the latest version and to stay current with frequent updating.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |