Eventually I "solved"this problem by adding a --user
flag to the pip command. I don't like that solution but it allows me to move on.
There were many interesting ideas in the somewhat similar issue 79341943. I tried removing the 'site-packages' folder as was suggested in the issue. This didn't work, but it got me a more useful error message.