

If you install Python 3, pip will be installed automatically. WARNING: for a modern macOS (2019) this can install Python 3, and for Python 2 you really need to do: brew install Python 3: brew install python3 Anyway, it's better to manage it with Homebrew. MacOS comes with Python 2, but not with pip. In order to use only 'pip', add an alias: sudo nano ~/.bash_profile

Install Homebrew: mkdir homebrew & curl -L | tar xz -strip 1 -C homebrewĪdd this line: export PATH="$HOME/homebrew/bin:$PATH" QuickTip: How Do I Install pip on macOS or OS X?Įasy_install has been deprecated. sudo easy_install pipĪfter that, pip will be installed and you'll be able to use it for installing other packages. ℹ️ Now, all you have to do is run the following command.

This also means that you already have access to easy_install considering you are using macOS or OS X. If this command returns a version number that means Python exists. But to make sure that you have Python installed open the terminal and run the following command. The macOS comes with the Python environment installed. ⚡️ OK, I read the solutions given above, but here's an easy solution to install pip. Check Method #2 below for the preferred installation! The following used to work in 2019 and beforeĪll you had to do was: sudo easy_install pipĢ019: ⚠️ easy_install has been deprecated. Or the following if you have it installed as Python 3 curl | python3 Run the following command for Python v3 curl | python
Sketchup install macos homebrew mac#
Run the following command for Python v2.7 (default on Mac as of 2021) curl | python
