Install aip on Mac High Sierra

I have the same issue attempting to run aip on a fresh Raspberry Pi 400 install, only with Python 3.7:

$ aip help
Traceback (most recent call last):
  File "/home/pi/.local/bin/aip", line 10, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.7/site-packages/aip/main.py", line 52, in main
    from aip.command import commands_dict, parse_command
  File "/home/pi/.local/lib/python3.7/site-packages/aip/command.py", line 46, in <module>
    from aip.build import buildCommand
  File "/home/pi/.local/lib/python3.7/site-packages/aip/build.py", line 34, in <module>
    from pip._internal.operations.prepare import (
ImportError: cannot import name '_download_http_url' from 'pip._internal.operations.prepare' (/home/pi/.local/lib/python3.7/site-packages/pip/_internal/operations/prepare.py)