Soren Dam
  • Blog
  • Contact

Upgrade Ansible on macOS High Sierra using PIP

December 29, 2017

By Søren Friis Dam

I am using Trellis for my WordPress development and when updating to the latest version it required a newer version of Ansible. When I try to run the normal command on macOS High Sierra it fails as there is a package that cannot be uninstalled. However, if you ignore that package using the –ignore-installed flag you should be able to upgrade ansible to the latest version

sudo pip install ansible --upgrade --ignore-installed six

This should do it and the install should run normally. You can now check you version by running

ansible --version

…and if you need to downgrade (e.g. if you have an older version of Trellis) you can always uninstall Ansible and install a specific version with the following commands:

sudo pip uninstall ansible
sudo pip install ansible==2.3.0.0

One response to “Upgrade Ansible on macOS High Sierra using PIP”

  1. Gini says:
    July 29, 2020 at 15:05

    that’s cool. thanks

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Contact
  • © 2025 Søren Friis Dam