I am trying to install planemo
like so:
/usr/local/bin/pip3 install virtualenv
virtualenv .venv
. .venv/bin/activate
/usr/local/bin/pip3 install planemo
The last command fails with this error message:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/locale'
Consider using the `--user` option or check the permissions.
WARNING: You are using pip version 21.0.1; however, version 22.2 is available.
You should consider upgrading via the '/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
How to solve this?
. .venv/bin/activate
This line activates your virtual environment. "activating" in this case means setting a bunch of environment variables, including PATH
.
/usr/local/bin/pip3 install planemo
And then you completely ignore PATH
by calling pip3 with an absolute path. Make that
pip install planemo
and it should work.