elliotweiser / ansible-osx-command-line-tools

An Ansible role for installing OS X Command Line Tools
https://galaxy.ansible.com/elliotweiser/osx-command-line-tools/
MIT License
97 stars 42 forks source link

Build fails when installing Python dependencies #55

Closed martianplatypus closed 4 years ago

martianplatypus commented 4 years ago

Builds are failing because there is a conflict with six 1.4.1 that comes with Python 2.7 and a newer version required by some of the dependencies. Pip attempts to uninstall six 1.4.1 but it fails because it doesn't have permission to remove files and directories in the path where six is installed by default: /Library/Python/2.7/site-packages/

OSX versions affected: 10.13 and 10.14 (potentially others) pip version: 20.0.2

Solution

Add a flag to ignore six when installing pip modules: sudo -H pip install -U virtualenv --ignore-installed six