gerwild.blogg.se

Brew install python3
Brew install python3











brew install python3

However, Python located in, or symbolically linked from, /usr/local/bin is not part of the macOS and can be deleted. You cannot do much to this version - and don’t try or you’ll mess up your Mac. But, be careful! On a Mac, the operating system needs the version of Python kept at /usr/bin/python. If you want a squeaky-clean system, you can remove extraneous Python installs. It’s how it’s installed and updated that differs.

brew install python3

If you downloaded Python directly from and used the installer, you’ll have non-Homebrew Python on your system. 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 )

brew install python3

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.













Brew install python3