Python 2 and macOS Monterey

Python 2 has now been removed from macOS 12.3, after a decade-long transition period.

Workflow developers writing Python mostly switched to version 3, so chances are you won't notice the change.

If a workflow you use is affected:

First, check if there is an update; The Workflow's developer may have already released one which does not depend on Python 2.

Another option is to check for an alternative; If the developer no longer supports that Workflow, there may be another which still works and fits your needs.

Finally, you can reinstall Python 2. To do so, install Homebrew then run the following in a terminal:

export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}"
eval "$(brew shellenv)"
brew install pyenv
pyenv install 2.7.18
ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"

It will take a few minutes to finish and you'll end up with a functional Python 2 linked to your Homebrew prefix. Alfred will automatically pick it up.

Keep in mind that, as with PHP, some Workflows may need additional tweaking. For help with those, pop on over to the Alfred Forum where our friendly community should be able to help.

Latest Blog Post:

Alfred 4.6.5 Released: 1Password 8 Workflow Integration

CacheFly Campaign Monitor

"Alfred" is a registered trademark of Running with Crayons Ltd. ©2022 Running with Crayons Ltd. All rights reserved.

Terms & Conditions, Privacy Policy, Cookies.