I am trying to installplanemo
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.
The error is caused by an outdated version of pip
. Note that the error message is followed by a few hints, one of which solves the issue. Just upgrade pip
:
/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip
Now this works:
/usr/local/bin/pip3 install planemo
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.