I have encountered the same situation before, the following is my solution, and you could refer to it:

In the folder where VS Code extensions are stored (..:\Users\username.vscode\extensions), find the "Python" extension and the "Jupyter" extension, and then try to remove or delete them, then reopen VS Code, and install these two extensions:

Answer from Jill Cheng on Stack Overflow
🌐
Reddit
reddit.com › r/archlinux › vscode - jupyter notebooks issue
r/archlinux on Reddit: VSCode - Jupyter Notebooks issue
February 1, 2022 -

I'm new to Python codin and I'm trying to create a new Jupyter notebook in my VSCode environment and facing issues.I installed Anaconda, created a custom envrironment with Python 3.9, ipnyb kernel and Jupyter stuff in it and made VS Code use it as the interpreter too. Installed both Python and Jupyter extensions.

Whenever I try to create a new ipnyb file by clicking Ctl+Shft+P and creating a new Jupyter notebook, I get the following error:

Command'Jupyter'Create New Jupyter Notebook' resulted in an error (command 'jupyter.createnewnotebook' not found)

Any ideas on how to fix this? Any help in resolving the issue is much appreciated.

Edit: Strange, now I get a different error. It says that the Jupyter extension failed to activate.

PS: Earlier I faced an issue with activating the Jupyter extension, and managed to solve the issue by adding the following line to the argv.json file from the Preferences: Configure Runtime Arguments option

"enable-proposed-api": ["ms-toolsai.jupyter"]
Discussions

Cannot select current python interpreter as kernel
Within my notebook, I click Select Kernel->Python Environments. The current python interpreter is not available. Ironically, I can run Jupyter: Create Interactive Window which connects just fine. I just can't run an existing notebook 🙃 · I should note my workflow is pretty nontraditional -- I'm using a python executable built with Bazel that changes some paths etc on startup. But still, I can run it fine from the command ... More on github.com
🌐 github.com
4
August 15, 2024
Unable to select interpreter to start Jupyter server
Environment data VS Code version: 1.51.1 Jupyter Extension version (available under the Extensions sidebar): v2020.11.372831992 Python Extension version (available under the Extensions sidebar): v2... More on github.com
🌐 github.com
3
November 27, 2020
Error: Command 'Python: Select Interpreter' resulted in an error
Discussed in microsoft/vscode-python#20933 Originally posted by HikmetBeyoglu March 29, 2023 Dear folks, I am using Version: 1.76.2 (user setup) Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 Dat... More on github.com
🌐 github.com
17
March 29, 2023
python interpreter not recognizing in VS Code Jupyter notebook via conda environment
Version: 1.55.0 (user setup) Commit: c185983a683d14c396952dd432459097bc7f757f Date: 2021-03-30T16:01:55.261Z Electron: 11.3.0 Chrome: 87.0.4280.141 Node.js: 12.18.3 V8: 8.7.220.31-electron.0 OS: Windows_NT x64 10.0.21292 It appears VS Co... More on github.com
🌐 github.com
4
April 8, 2021
🌐
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
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 15938
Cannot select current python interpreter as kernel · Issue #15938 · microsoft/vscode-jupyter
August 15, 2024 - Applies To Notebooks (.ipynb files) Interactive Window and/or Cell Scripts (.py files with #%% markers) What happened? Using the suggested (but complicated) workflow to pick a custom interpreter, I run: Python: Select Interpreter -> sele...
Author   pculbertson-bdai
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 4036
Unable to select interpreter to start Jupyter server · Issue #4036 · microsoft/vscode-jupyter
November 27, 2020 - Select interpreter does nothing and Jupyter keeps prompting ipykernel to be install to my other interpreter 3.8.3 64-bit (conda) - which is my conda base environment.
Author   leonarduschen
🌐
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 - Encountering the "Jupyter command not found" error after installing Jupyter with pip can be frustrating. This common issue typically arises due to problems with the installation path or virtual environments. In this guide, we'll explore the root causes and provide step-by-step solutions to fix this error.
🌐
Visual Studio Code
code.visualstudio.com › docs › datascience › jupyter-notebooks
Jupyter Notebooks in VS Code
November 3, 2021 - To work with Python in Jupyter ... the Jupyter package. To select an environment, use the Python: Select Interpreter command from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P))....
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 13213
Error: Command 'Python: Select Interpreter' resulted in an error · Issue #13213 · microsoft/vscode-jupyter
March 29, 2023 - My issue starts from having the following error: 'Solving: Command 'Python: Select Interpreter' resulted in an error' Command 'Python.setIntrepreter' not found
Author   HikmetBeyoglu
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 5453
python interpreter not recognizing in VS Code Jupyter notebook via conda environment · Issue #5453 · microsoft/vscode-jupyter
April 8, 2021 - It appears VS Code does not add one of the paths for Python interpreters in the Conda environment for some strange reason. Running python --version from CMD prompt (with Conda env activated) shows Python 3.6.12 :: Anaconda, Inc. But running python --version from within a Jupyter notebook in VS Code shows Python 3.8.3
Author   cpoptic
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 12910
Select Kernel not finding python interpreter · Issue #12910 · microsoft/vscode-jupyter
February 22, 2023 - When I click 'Select Kernel' in a notebook, it can't find my python interpreter, but when I use Python: Select Interpreter, it's able to find my python version. I don't recall this happening before.
Author   andreamah
🌐
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 - If Jupyter Notebook opens in your browser, the ‘jupyter: command not found’ error is resolved. You can try using the Python -m option to run Jupyter Notebook by executing the following command: ... This will run Jupyter Notebook using the Python interpreter.
🌐
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.
🌐
Cursor
forum.cursor.com › support › help
"Failed to find a kernel to run the code. Please install the Jupyter extension" - Help - Cursor - Community Forum
March 25, 2024 - Trying the interpreter mode and always get these messages when trying something… The thing is I installed the “Jupyter” extension already lol. I’m not familiar with Python though (using С#), just installed this extension…
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 :)

🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 14678114304146-Jupyter-ignores-the-virtual-environment-interpreter-I-set
Jupyter ignores the virtual environment interpreter I set – IDEs Support (IntelliJ Platform) | JetBrains
October 26, 2023 - A way to circumvent this is to : * Open a terminal with the venv activated * Create a new kernel using : python -m ipykernel install --user --name=venv_kernel * Then on the kernel dropdown menu of the notebook, select that “venv_kernel” (or whatever you named it). But I still wonder if there is a way to do this automatically, so I don't have to do this manually each time I'm creating a venv and want to use it with Jupyter ?
🌐
GitHub
github.com › microsoft › vscode-jupyter › issues › 15816
Python: Select Interpreter and Notebook "Select a Python Environment" are inconsistent · Issue #15816 · microsoft/vscode-jupyter
July 2, 2024 - "Python: Select Interpreter" shows a list of "discovered" python environments, plus there's an option "+ Enter interpreter path". But this option isn't present when choosing a python environment for notebooks (instead there's a list of "discovered" python environments, plus an option to "+ Create Python Environment".
Author   david-waterworth
🌐
Visual Studio Code
code.visualstudio.com › docs › python › jupyter-support-py
Python Interactive window
November 3, 2021 - To work with Jupyter notebooks, ... the Jupyter package. To select an environment, use the Python: Select Interpreter command from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P))....