How to solve [WinError 5] Access is denied in anaconda prompt

Darkstar Dream picture Darkstar Dream · Mar 20, 2020 · Viewed 24.6k times · Source

I have recently reset my laptop and installed anaconda in it, and I tried to open jupyter lab but it gives me error Error executing Jupyter command 'lab': [WinError 5] Access is denied but it works fine when I try to open JUPYTER NOTEBOOK or try to open JUPYTER LAB with anaconda as administrator I reinstalled anaconda and still it gives me the same error also it gives me the same error when I try to open JUPYTER LAB from anaconda navigator, before resting my laptop it works fine for me but now its not. I tried to search my query on the web before asking here but I did not get my answer.

I want to run JUPYTER LAB with normal anaconda prompt

additional details

-My anaconda is installed in C:\ProgramData  (by default)
-I didn't check the box "add to path" while installing anaconda 

Answer

Darkstar Dream picture Darkstar Dream · Mar 24, 2020

finally, I found a way to get rid of this problem following are the steps

step1: open your anaconda navigator 
step2: click on jupyter lab setting option and then remove it
step2: Now open your anaconda prompt and type the following command "conda install -c conda-forge jupyterlab" 

now try to open it