Yes, This is the problem which I faced also during the installation of Jupyter Notebook. But I know the solution of this. I hope, it also works for you as well.

  1. Open cmd.
  2. Type: pip install notebook.
  3. If you Type: **jupyter notebook** - it always shows an error.
  4. So, Type: python -m notebook.

Image shows running Jupyter Notebook

If you feel that this answer is useful and works for you, I expected. So, please press the Up Button for other peoples. So that they can also get some help.

Answer from Aakash Garg on Stack Overflow
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 12798
Jupyter command `jupyter-notebook` not found. · Issue #12798 · microsoft/vscode-jupyter
February 9, 2023 - Error code from Jupyter: 1 usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand] Jupyter: Interactive Computing positional arguments: subcommand the subcommand to launch optional arguments: -h, --help show this help message and exit --version show the versions of core jupyter packages and exit --config-dir show Jupyter config dir --data-dir show Jupyter data dir --runtime-dir show Jupyter runtime dir --paths show all Jupyter paths. Add --json for machine-readable format. --json output paths as machine-readable json --debug output debug information about paths Available subcommands: Jupyter command `jupyter-notebook` not found.
Author   vladcrishan
🌐
Saturn Cloud
saturncloud.io › blog › how-to-fix-the-jupyter-command-jupyternotebook-not-found-exception-on-windows
How to Fix the Jupyter Command jupyter-notebook not found Exception on Windows | Saturn Cloud Blog
December 12, 2023 - If the command is not found in any of the directories, Windows will return an error message. To fix the jupyter-notebook not found exception, you need to add the Jupyter installation path to the PATH environment variable.
Discussions

python - 'Jupyter' is not recognized as an internal or external command - Stack Overflow
When I try to run the command (in command prompt) to start a notebook it says · 'jupyter' is not recognized as an internal or external command ... I am using Windows 10. I am assuming its a PATH issue but I have not had any luck with the solutions I found from other posts. More on stackoverflow.com
🌐 stackoverflow.com
python - How can I fix "'jupyter' is not recognized as an internal or external command, operable program or batch file" when running Jupyter on Windows? - Stack Overflow
I got Jupyter Notebook running in Windows 10. I found the easiest way to accomplish this task without relying upon a distribution like Anaconda was to use Cygwin. In Cygwin, install packages python2, python2-devel, python2-numpy, python2-pip, tcl, and tcl-devel (I have included an image below of all packages I installed), and any other Python packages you want that are available. This is by far the easiest option. Then run this command ... More on stackoverflow.com
🌐 stackoverflow.com
April 6, 2017
ubuntu - After installing with pip, "jupyter: command not found" - Stack Overflow
I fixed the issue, jupyter notebook worked then. ... Open a terminal window using Ctrl+Alt+T. Run the command gedit ~/.profile. More on stackoverflow.com
🌐 stackoverflow.com
Error while running 'jupyter-lab' or 'jupyter lab' on Windows machine
As mentioned in this link about how to install Jupyterlab with pip, I ran into some problems. The installation went fine as far as my command prompt is concerned. But when I try to run Jupyterlab using the command jupyter lab the following error message shows up: ‘jupyter-lab’ is not recognized ... More on discourse.jupyter.org
🌐 discourse.jupyter.org
17
1
August 11, 2021
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-fix-jupyter-command-not-found-error-after-installing-with-pip
"How to Fix 'jupyter: command not found' Error After Installing with pip " - GeeksforGeeks
July 23, 2025 - If you've installed Jupyter using the Python pip command, use the appropriate commands based on your operating system: On Windows : py -m pip install jupyter On Linux/Mac: python3 -m pip install jupyter ...
🌐
Saturn Cloud
saturncloud.io › blog › how-to-fix-jupyter-command-not-found-error-after-installing-with-pip
How to Fix 'jupyter: command not found' Error After Installing with pip | Saturn Cloud Blog
December 19, 2023 - However, it does not add the Jupyter executable to the system’s PATH variable, which is required to run Jupyter Notebook from the command line. The PATH variable is an environment variable that contains a list of directories separated by a colon. When you type a command in the terminal, the system looks for that command in the directories listed in the PATH variable. If the command is not found in any of those directories, you will get the “command not found” error.
🌐
Jupyter Notebook
jupyter-notebook.readthedocs.io › en › stable › troubleshooting.html
What to do when things go wrong — Jupyter Notebook 7.5.5 documentation
File "C:\Users\jovyan\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py", line 435, in secure_write win32_restrict_file_to_user(fname) File "C:\Users\jovyan\AppData\Roaming\Python\Python37\site-packages\jupyter_core\paths.py", line 361, in win32_restrict_file_to_user import win32api ImportError: DLL load failed: %1 is not a valid Win32 application · In this case, your pywin32 module may not be installed correctly and the following should be attempted: ... Another common failure specific to Windows environments is the location of various python commands.
Top answer
1 of 16
351

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

2 of 16
85

Please try either of these commands first;

py -m notebook
python -m notebook

For JupyterLab users:

py -m jupyterlab

Otherwise

python -m pip install jupyter --user
jupyter notebook

If this does not work.

pip does not add Jupyter directly to path for local.

The output from

which python

Output:

/c/Users/<username>/AppData/Local/Programs/Python/Python35-32/python

After some digging, I found a executable for Jupyter in the folder:

C:\Users\<username>\AppData\Roaming\Python\Python35\Scripts\jupyter.exe

Difference between local and roaming folder

So if you want to be able to execute a program via command line, you need to add it into the %PATH variable. Here is a PowerShell script to do it. BE SURE TO ADD THE ";" before adding the new path.

[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Users\<username>\AppData\Roaming\Python\Python35\Scripts", [EnvironmentVariableTarget]::User)

If you are using python3, switch out python with python3 but I encourage you to use pyenv instead :)

Find elsewhere
🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterlab
Error while running 'jupyter-lab' or 'jupyter lab' on Windows machine - JupyterLab - Jupyter Community Forum
August 11, 2021 - As mentioned in this link about how to install Jupyterlab with pip, I ran into some problems. The installation went fine as far as my command prompt is concerned. But when I try to run Jupyterlab using the command jupyter lab the following error message shows up: ‘jupyter-lab’ is not recognized as an internal or external command, operable program or batch file.
🌐
Reddit
reddit.com › r/jupyter › jupyter not recognized as internal or external command
r/Jupyter on Reddit: jupyter not recognized as internal or external command
April 20, 2020 -

I decided to learn me some python with the help of this gent here https://codewithmosh.com/p/python-programming-course-beginners

On the machine learning tutorial (https://www.youtube.com/watch?v=_uQrJ0TkZlc&t=15022s), the command that Mosh said to enter in the terminal screen was "jupyter notebook". After following the installation instructions of his to a 't' on Windows 10, I received this message

"(venv) C:\Users\User\PycharmProjects\Test>jupyter notebook'jupyter' is not recognized as an internal or external command,operable program or batch file."

Here is what worked for me to fix this...

  1. In the terminal window on Pycharm enter "pip install jupyterlab"

  2. After everything loads, in the same terminal, enter "jupyter notebook". After that everything worked for me.

  3. (Possible Scenario) During the troubleshooting, before if found the "pip install jupyterlab" work-around, I had uninstalled and reinstalled Anaconda and selected the "not recommended" path option checkbox during the installation. Not sure if that had anything to do with the success, but it may be useful info.

Update: the next step on this tutorial is to "import pandas as pd" on a jupyter notebook.

Using this work-around seems to make this not possible for some reason. Any advice?

🌐
Bobby Hadz
bobbyhadz.com › blog › jupyter-is-not-recognized-as-internal-or-external-command
jupyter is not recognized as an internal or external command | bobbyhadz
Copied!jupyter notebook python -m notebook py -m notebook # 👇️ for JupyterLab users python -m jupyterlab py -m jupyterlab jupyter-lab · The python -m notebook command should work even if you don't have the path to pip in your PATH environment variable.
🌐
Ajaytech
ajaytech.co › jupyter-is-not-recognized
Jupyter is not recognized - Ajay Tech
April 8, 2020 - If you don’t have …\Python3x\Scripts anywhere, then this means that your command prompt is not able to look at your Python Scripts folder (where your Jupyter scripts are located).
🌐
Medium
medium.com › @ojhakrishnabahadur010 › fixing-the-error-jupyter-is-not-recognized-as-an-internal-or-external-command-93eba123bcec
Fixing the Error: ‘jupyter’ is not recognized as an internal or external command | by Krishna Ojha | Medium
December 22, 2025 - Step-by-Step Solution: Here’s how you can resolve this issue: Step 1: Verify Jupyter Installation Ensure that the Jupyter notebook is installed in your device by searching on search bar.
🌐
UW Computer Sciences
pages.cs.wisc.edu › ~paris › cs564-f18 › material › jupyter_install.html
Step 1: Installing Jupyter Notebook
When you type in a command such as jupyter notebook, your system looks for the "jupyter" executable in all of the directories listed in your PATH environment variable. You may need to add the directory where you installed jupyter or pip to your PATH variable... For example, if you successfully ...
🌐
Python Forum
python-forum.io › thread-8054.html
Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2
hi So i installed Anaconda to get access to jupyter notebook and python.then I run jypyter notebook command in command prompt I get Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 does someone know how to fix this ...
🌐
GitHub
github.com › jupyter › notebook › issues › 5297
"Exception: Jupyter command `jupyter-notebooks` not found"? · Issue #5297 · jupyter/notebook
March 19, 2020 - You switched accounts on another tab or window. Reload to refresh your session. ... I've just started having this error when launching jupyter notebook, out of what looks like nowhere.
Author   stur86
🌐
Saturn Cloud
saturncloud.io › blog › troubleshooting-the-jupyter-command-not-found-error-after-installing-with-pip
Troubleshooting the jupyter command not found Error After Installing with pip | Saturn Cloud Blog
January 5, 2024 - Jupyter is not in the system PATH: ... the PATH, you’ll receive the “command not found” error. First, ensure that Jupyter Notebook is indeed installed....
🌐
JetBrains
youtrack.jetbrains.com › issue › PY-60041 › Pycharm-Jupyter-Jupyter-command-jupyter-notebook-not-found
Jupyter command 'jupyter-notebook' not found : PY-60041
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong
🌐
JetBrains
youtrack.jetbrains.com › issue › PY-70652 › Pycharm-Jupyter-Jupyter-command-jupyter-notebook-not-found
Jupyter command 'jupyter-notebook' not found : PY-70652
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong