Error while running 'jupyter-lab' or 'jupyter lab' on Windows machine

@fomightez I tried adding python to Windows PATH, by uninstalling and reinstalling python and then manually adding the scripts path to PATH. Finally it worked.

However, the command jupyter lab throws an error:

Fatal error in launcher: Unable to create process using ‘“c:\program files\python.exe” “C:\Users\user\AppData\Roaming\Python\Python39\Scripts\jupyter.exe” lab’: The system cannot find the file specified.

However, if I run jupyter-lab, it works just fine.

Same thing happens when I try to open only the notebook(jupyter notebook) after installing jupyter notebook using pip install jupyter:

Fatal error in launcher: Unable to create process using ‘“c:\program files\python.exe” “C:\Users\user\AppData\Roaming\Python\Python39\Scripts\jupyter.exe” notebook’: The system cannot find the file specified.

But if I run jupyter-notebook, works just fine again.

Seems like there is some inconsistency in the documentations.

1 Like