Skip to main content

Builds fail with "pip: command not found" on MacOS Images

Problem

Python 2 is no longer installed for macOS images from Xcode 11.4 onwards. This is due to homebrew deleting the Python 2 formula after it being deprecated for several years.

Solution

The current workaround is to install the `pyenv` package from homebrew. This will link the `python` and `pip` commands to python 3.7 instead.

- run: brew install pyenv

Additional Resources

Did this answer your question?