Installing python package on gadi

Hi all,

I’m trying to install a Python package in my home directory on Gadi (/home/156/ps7863/python_packages). However, Gadi says I don’t have permission to do so:

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
  environment location: /g/data/hh5/public/apps/miniconda3/envs/analysis3-24.04
  uid: 18195
  gid: 4334

Is there a workaround for this? Should I create my own Conda environment? I’d prefer to avoid this if possible, so I don’t need to activate it every time I use the package…

I generally would use this:

pip install --user <package>
2 Likes

Thanks, Dave, that worked. I didn’t specify --user when I first tried to install the package.

1 Like

Although @dkhutch’s approach works, it’s not always the recommended approach.
More info here:

The downside with this approach is that it can lead to problems in the future. First of all, everything will be installed in your /home directory, which has a small quota and can easily be filled by local pip installations.

In the long-term, I would switch to using python virtual environments instead.

3 Likes