Install aip on Mac High Sierra

Well that did not work. Mac has:

  • Python 2.7.16
  • Python 3.8.6
  • Pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8)

BUT as part of the install I get:

ardupy-aip 0.8.1 requires pip>=20.1, but you’ll have pip 18.1 which is incompatible.

So upgrading pip to 20.1 with sudo -H python3 get-pip.py pip==20.1 gives a different error:

ModuleNotFoundError: No module named ‘requests’

but a quick sudo -H pip install requests gives me an aip command that does not error on the help!

So it looks like the process is:

  1. Install Python 3 on the Mac from python.org
  2. Download get-pip.py
    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  3. Run that to install version 20.1
    sudo -H python3 get-pip.py pip==20.1
  4. Add the ‘requests’ module using pip sudo -H pip install requests

This MAY work in a virtual env but I’m not testing that til 2021.

FORGET IT - the next thing I try dies with

FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/andrew/.config/aip/modules’

Going to ask for working instructions from the devs.