Jupyter Notebook is an open-source web-based project that is used to create and share documents, programming files, and text contents with other users.
When you first install Python, Jupyter does not come as a default installation along with the Python. You have to install it separately. You are here means you are facing “jupyter is not recognized as an internal or external command, operable program or batch file” error message.
Don’t worry it’s a very basic configuration side error and it occurs when you are using Jupyter for the first time. Once the required configuration is done, you will not face this error message again.
There are following two reasons which cause “jupyter is not recognized as an internal or external command” error.
- Jupyter is not installed on the system
- Incorrect path of an executable in the system environment variable
Go through this article thoroughly to understand these reasons and get rid of this error message.
We will first see how to install jupyter on the system and then we will set the required environment variable.
Step 1: Install Jupyter on your Windows system
The first thing to check is whether you have installed Jupyter on your system or not. If you have not installed Jupyter and tried to use the Jupyter command then of course you will get the above error message as this functionality is not available on your system.
If you have already installed Jupyter then move to Step 2 else follow the below stepwise procedure to install Jupyter on your Windows system.
You can use the pip application of Python to install Jupyter on your system.
Open Command Prompt
Go to the Start menu and search for a Run application or directly press the Windows + R shortcut key. In the Run application type cmd and hit enter or click an ok button.
Run jupyter command
Run the following command on the command prompt as shown below.
python -m pip install jupyter
Step 2: Set Executable Path In The Environment Variable
Note: Here we have assumed that you have installed jupyter on your environment.
If you have installed jupyter and still getting the error message then check for the system PATH variable. Either you have not entered jupyter executable path in the PATH system variable or the entered path is incorrect.
Follow the below stepwise procedure to set the correct jupyter executable path in the environment variable.
Go to Control Panel — > System and Security — > System
In the System Properties pane, select the Advanced tab and click on the Environment variable option as shown below.
The environment variable window will open to set the user variable and system variable. Here we will set the system variable so that it will apply to all the users of the system. When you install the jupyter, all required executable gets added to the Scripts folder of python installation.
Add path up to scripts folder of python installation in the variable value as shown below and click ok as shown below.
Note 1: After changing the environment variable value, make sure to open a new command prompt to execute the jupyter command. If you try to run the jupyter command on the same command prompt then you will again get the “jupyter is not recognized as an internal or external command” error message.
Note 2: Some of our users noted that running the command prompt in administrative mode resolved their issue. After configuring the above setting if you are still getting the same error message then try running the command prompt in administrative mode.
Conclusion:
We hope, using the above steps you are able to get rid of the “jupyter is not recognized as an internal or external command, operable program or batch file” error message.
Please let us know whether you can fix this error with the above steps or not in the comment section. You can also reach out to us using the Contact Form.