Running `pip install --upgrade pip` fails on osx

hello,

upgrading pip on osx is currently failing:

$ travis_retry pip install --upgrade pip
ERROR:root:code for hash md5 was not found.

see https://travis-ci.org/aubio/aubio/jobs/623294184 for an example with more details.

is this a known issue or is there something to change in the configuration?

cheers, piem

Your alias has no effect: “Aliases allow a string to be substituted for a word when it is used as the first word of a simple command.”.

And I don’t like this line:

export PATH="$HOME/Library/Python/2.7/bin/:$PATH"

which can be overriding some things from Homebrew’s Python, breaking it.

It looks like you are somehow making code from Pip 3 run in Python 2 environment – which isn’t supposed to work.

Check carefully what exact script is being run with travis_retry pip install --upgrade pip and what Python executable and sys.path it gets. (Optionally fixing your code to properly run pip2 before that.)

Imprint