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

Home/ Questions/Can I fix the “jupyter' is not recognized as an internal or external command, operable program or batch file” or not?

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

  • 27

  • 27

I get the “jupyter’ is not recognized as an internal or external command, operable program or batch file.” issue when trying to run the command (in command prompt) to start a notebook. Here is the detail of the error I got the error message:

'jupyter' is not recognized as an internal or external command

'python' is not recognized as an internal or external command

Please give me some advice to solve this problem.

  • Report

When I try to access jupyter via cmd it anycodings_jupyter-notebook gives me the error line in the title. I'm anycodings_jupyter-notebook using python 3.8.5 and installed jupyter via anycodings_jupyter-notebook pip using pip install jupyter command and it anycodings_jupyter-notebook showed me the following message in the cmd anycodings_jupyter-notebook line

>pip install jupyter Requirement already satisfied: jupyter in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (1.0.0) Requirement already satisfied: jupyter-console in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (6.1.0) Requirement already satisfied: notebook in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (6.1.3) Requirement already satisfied: qtconsole in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (4.7.6) Requirement already satisfied: ipywidgets in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (7.5.1) Requirement already satisfied: ipykernel in c:\users\this pc\appdata\roaming\python\python38\site- packages (from jupyter) (5.3.4) Requirement already satisfied: nbconvert in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (5.6.1) Requirement already satisfied: pygments in c:\users\this pc\appdata\roaming\python\python38\site- packages (from jupyter-console->jupyter) (2.6.1) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\this pc\appdata\roaming\python\python38\site-packages (from jupyter-console->jupyter) (3.0.6) Requirement already satisfied: jupyter-client in c:\users\this pc\appdata\roaming\python\python38\site-packages (from jupyter-console->jupyter) (6.1.6) Requirement already satisfied: ipython in c:\users\this pc\appdata\roaming\python\python38\site- packages (from jupyter-console->jupyter) (7.17.0) Requirement already satisfied: Send2Trash in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (1.5.0) Requirement already satisfied: nbformat in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (5.0.7) Requirement already satisfied: pyzmq>=17 in c:\users\this pc\appdata\roaming\python\python38\site- packages (from notebook->jupyter) (19.0.2) Requirement already satisfied: terminado>=0.8.3 in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (0.8.3) Requirement already satisfied: prometheus-client in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (0.8.0) Requirement already satisfied: traitlets>=4.2.1 in c:\users\this pc\appdata\roaming\python\python38\site-packages (from notebook->jupyter) (4.3.3) Requirement already satisfied: argon2-cffi in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (20.1.0) Requirement already satisfied: jinja2 in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (2.11.2) Requirement already satisfied: tornado>=5.0 in c:\users\this pc\appdata\roaming\python\python38\site- packages (from notebook->jupyter) (6.0.4) Requirement already satisfied: jupyter-core>=4.6.1 in c:\users\this pc\appdata\roaming\python\python38\site-packages (from notebook->jupyter) (4.6.3) ... WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available. You should consider upgrading via the 'c:\users\this pc\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.

After that I tried to access jupyter anycodings_jupyter-notebook notebook by the following cmd line python -m anycodings_jupyter-notebook jupyter command but instead of opening in a anycodings_jupyter-notebook web browser it is showing me the following anycodings_jupyter-notebook error message.

Traceback (most recent call last): File "c:\users\this pc\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\this pc\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\This PC\AppData\Local\Programs\Python\Python38\Scripts\jupyter- notebook.EXE\__main__.py", line 4, in <module> File "c:\users\this pc\appdata\local\programs\python\python38\lib\site- packages\notebook\notebookapp.py", line 51, in <module> from zmq.eventloop import ioloop File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\__init__.py", line 50, in <module> from zmq import backend File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 40, in <module> reraise(*exc_info) File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise raise value File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line 27, in <module> _ns = select_backend(first) File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\select.py", line 28, in select_backend mod = __import__(name, fromlist=public_api) File "C:\Users\This PC\AppData\Roaming\Python\Python38\site- packages\zmq\backend\cython\__init__.py", line 6, in <module> from . import (constants, error, message, context, ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython' (most likely due to a circular import) (C:\Users\This PC\AppData\Roaming\Python\Python38\site- packages\zmq\backend\cython\__init__.py)

Note that

  1. I've already added python to the environment variable so there's nothing wrong there. I checked twice.

In the path folder I've these items

so what should I do now?

29

Answers 1 : of jupyter is not recognized as an internal or external command, operable program or batch file in Windows 10

Try using jupyter notebook alone. From anycodings_jupyter-notebook my knowledge, python -m is for anycodings_jupyter-notebook referencing modules and it could just be anycodings_jupyter-notebook causing problems.

0

2022-08-01T21:42:57+00:00 2022-08-01T21:42:57+00:00Answer Link

mRahman

6

Answers 2 : of jupyter is not recognized as an internal or external command, operable program or batch file in Windows 10

Finally solved it, I had to reinstall anycodings_jupyter-notebook everything and add another path option anycodings_jupyter-notebook to the environment variable which is anycodings_jupyter-notebook C:\Users\This anycodings_jupyter-notebook PC\AppData\Roaming\Python\Python38\Scripts anycodings_jupyter-notebook the previous path was in the local anycodings_jupyter-notebook folder and this one is in the Roaming anycodings_jupyter-notebook folder. This did the trick for me.

0

2022-08-01T21:42:57+00:00 2022-08-01T21:42:57+00:00Answer Link

raja

Why is Jupyter not recognized?

If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command jupyter notebook . If it can't find jupyter , you may need to configure your PATH environment variable.

How do I access the Jupyter notebook in command prompt?

To launch Jupyter Notebook App:.
Click on spotlight, type terminal to open a terminal window..
Enter the startup folder by typing cd /some_folder_name ..
Type jupyter notebook to launch the Jupyter Notebook App The notebook interface will appear in a new browser window or tab..

How do you fix Py is not recognized as an internal or external command operable program or batch file?

Specify the full location to python.exe One way to fix the error would be to launch Python from the Command Prompt by passing in the full path to the executable file each time you wanted to run Python. In other words, instead of typing Python you would type something like C:\Users\me\path\to\python.exe .

How do I know if Jupyter is installed?

If you wish to know where Jupyter isinstalled on your computer, you may run where jupyter in the Command prompt. If you wish to know which Python version is installed, run python or python -V or python --version .