Search code examples
pythonjupyter-notebookjupyter

How to fix "'jupyter' is not recognized as an internal or external command, operable program or batch file" when running Jupyter on Windows?


I have installed Jupyter on Windows 10, Python 3.x via

$ pip install jupyter

The installation works fine, even though I did restart the terminal.

But trying to run

$ jupyter notebook

gives the following error

'jupyter' is not recognized as an internal or external command, operable program or batch file.

How and where do I find the executable for Jupyter?


Solution

  • If you are absolutely sure that your Python library path is in your system variables (and you can find that path when you pip install Jupyter, you just have to read a bit) and you still experience "command not found or recognized" errors in Windows, you can try:

    python -m notebook
    

    For my Windows at least (Windows 10 Pro), having the python -m is the only way I can run my Python packages from command line without running into some sort of error

    Fatal error in launcher: Unable to create process using ' "
    

    or

    Errno 'THIS_PROGRAM' not found