jean-zay-users/jean-zay-doc

Error when installing miniconda following the tips and tricks

zaccharieramzi opened this issue · 3 comments

I want to install miniconda as suggested in the tips and tricks and I get this error, when running conda update --yes conda:

EnvironmentNotWritableError: The current user does not have write permissions to the target environment.
  environment location: /gpfslocalsup/pub/anaconda-py3/2019.10

Do you know what could be causing it?

Probably you are picking up the sys-admin managed conda (likely through a module load) rather than the one you have installed in $WORK/miniconda3.

Yes probably, and how can I change that?

Not sure but probably a combination of these commands:

  • to figure out where conda is coming from:
which conda
type conda
  • to get conda to be the right thing (i.e. the one coming from your miniconda install in $WORK/miniconda3:
hash -r
module unload whatever-module-is-putting conda-in-the-path
source $MINICONDA_PATH/etc/profile.d/conda.sh