Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 358
Blaszard Avatar asked Oct 18 '25 14:10

Blaszard


2 Answers

@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) 
like image 141
anish kumar Avatar answered Oct 21 '25 04:10

anish kumar


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.

like image 28
baby_chewbacca Avatar answered Oct 21 '25 03:10

baby_chewbacca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!