Blaszard
Blaszard

Reputation: 31955

The command "jupyter lab" does not work as the file does not exist

I installed Jupyter Lab but cannot launch it (jupyter lab) due to the error: Error executing Jupyter command 'lab': [Errno 2] No such file or directory.

However, it is installed, and is show as one of available subcommands (via jupyter lab):

Available subcommands: bundlerextension console kernelspec lab labextension labhub migrate nbconvert nbextension notebook qtconsole run serverextension troubleshoot trust

Why does it not work and is there something I'm missing here? jupyter notebook works without any problems. I also added jupyter serverextension enable --py jupyterlab --sys-prefix according to the documentation on Github, FYI.

My working environment:

jupyter notebook --version # 5.0.0
jupyter version # 4.3.0

Upvotes: 4

Views: 9246

Answers (5)

irudyak
irudyak

Reputation: 2341

We need to find jupyter-lab command. In my case on a mac it is in /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/.

I'm using macports so my binaries are in /opt/local/bin. It's on my path:

> echo $PATH
.../opt/local/bin...

I have to create a symbolic link in this directory:

ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/jupyter-lab jupyter-lab

Upvotes: 0

GS Singh
GS Singh

Reputation: 11

simple solution I found for my mac powerbook is:

go to a working directory in the terminal and then type jupyter lab.

IT WORKS,

Upvotes: 0

anish kumar
anish kumar

Reputation: 69

@Blazard open the .profile in your home using VIM add the following path

export PATH=$PATH:/home/<user-name>/.local/bin

save it

$ source ~/.profile (Dont forget to do this) 

Upvotes: 7

edesz
edesz

Reputation: 12396

@Blaszard could you try the following

/home/<your-user-name>/.local/bin/jupyter-lab

SOURCE

EDIT

Alternatively, you would have to add /home/<your-user-name>/.local/bin to your PATH variable. However, you should probably just try it manually first and see if that even works at all.

Upvotes: 0

baby_chewbacca
baby_chewbacca

Reputation: 61

I had the same problem. Installing it over PyCharm IDE solved the problem for me. I am using Windows as an OS. Installing packages over PyCharm works in general better for me than over Windows cmd.

Upvotes: 1

Related Questions