Environments
How to prevent the permission denied error when running "pip install" in a workspace
Listen to this pageabout 1 min
If you are attempting to install or upgrade packages using “pip install” in a workspace, then you may receive a permission denied error.
For example:
It’s possible to install/upgrade packages in a workspace session, but you need to include the —user flag to avoid the permissions error.
For example:
However, this installation will not persist from run to run. If you consistently need this library upgrade, you can install this in a custom environment by following the instructions here.
Last modified on October 12, 2026
Was this page helpful?
⌘I