kanishk goyal
kanishk goyal

Reputation: 43

Jupyter Lab in Anaconda not working :Error executing Jupyter command 'lab': [WinError 5] Access is denied

this is the only error i getI have installed jupyter lab in anaconda using "conda install -c conda-forge jupyterlab" in the anaconda command prompt, but when i try to launch jupyter lab the error mentioned above comes up.

P.S I am able to open Jupyter Notebook through anaconda.

Upvotes: 4

Views: 8906

Answers (2)

Andrew
Andrew

Reputation: 744

With Anaconda Navigator closed, right click on Anaconda Navigator and click "Run As Administrator"

Then, when you launch JupyterLab it will work.

Upvotes: 7

gherka
gherka

Reputation: 1446

If you don't have full admin permissions on your machine, one workaround would be to replicate the jupyter-notebook shortcut, but point it to jupyter-lab instead.

To do that:

  • Find the jupyter-notebook shortcut (on Win10 in C:\Users\<yourusername>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit))
  • Make a copy of the Jupyter Notebook shortcut, rename it to Jupyter Lab
  • Right click and open Properties and on the last line where it says C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py "%USERPROFILE%/" change jupyter-notebook-script.py to jupyter-lab-script.py.

Upvotes: 6

Related Questions