Why do I get EnvironmentNotWritableError while installing eli5

Ang Sheng Jun picture Ang Sheng Jun · May 12, 2019 · Viewed 8.8k times · Source

I'm new to Python (1 month into Python). Trying to install eli5 to Python. I used

conda install -c conda-forge eli5

Got error message

EnvironmentNotWritableError: The current user does not have write permissions to the target environment. environment location: C:\ProgramData\Anaconda3

Appreciate assistance, thanks.

Per https://anaconda.org/conda-forge/eli5, I have tried

  1. conda install -c conda-forge eli5
  2. conda install -c conda-forge/label/gcc7 eli5
  3. conda install -c conda-forge/label/cf201901 eli5

All returned same message.

Answer

Jan Pansky picture Jan Pansky · Aug 1, 2019

Windows : Open a Anaconda Power shell promt (using Windows search) as administrator and type in conda install -c conda-forge eli5, if the command freezes after a while, press Ctrl + C and it will continue with collecting package metadata.