Is not recognized as an internal or external command program or batch file?

 In this article, we are going to discuss the error “jupyter is not recognized as an internal external  command” which you get when you type jypyter notebook in command mode. The first way to get around this problem is to install jupyter on your windows system if its not installed in your system and the second way may be to ‘check the executable path in the environment variable’. 


Photo by Surachet Khaoropwongchai

TABLE OF CONTENTS

You usually get this error "jupyter is not recognised as an internal-external command” when you try to access it thinking jypter is installed along with python.

⚠️ Jupyter does not automatically get installed with Python when you install it for the first time. It needs to be installed independently.

 ℹ  Jupyter Notebook is an open-source web application for creating and share documents. Data science tasks like exploratory data analysis (EDA), data cleaning and transformation, data visualisation, statistical modelling, machine learning, and deep learning are all performed using Jupyter notebooks.

Source: Wiki

Why does “Jupyter' is not recognized as an internal or external command, operable program or batch file.“ happens?

Some of the reasons which cause “jupyter is not recognized as an internal or external command” error occurs are:

  • Either jupyter is not installed on the system or
  • There is an incorrect path defined for the executable in the system environment variable.

How to resolve “Jupyter' is not recognized as an internal or external command, operable program or batch file.” ?

You can not only access jupter through the command line, but if you have installed jupyter notebook through anaconda or installed jupyter using pip then you can just go and search jupyter notebook.

Solution 1: Install jupyter on your windows system

The first step should be trying to search in the windows search bar and see if ‘jypter’ is installed or not if it's installed move to solution 2 else you can install jupyter notebook through anaconda or install jupyter using pip.

The steps in the installation of jupyter are as follows:

1.     Open command prompt ie Open cmd

2.     Type python -m pip install jupyter

python -m pip install jupyter

Solution 2: Set Executable Path In The Environment Variable

In this solution, we are assuming that we already have installed ‘jupyter’ but due to some configuration issues we are getting a bad “jupyter is not recognized as an internal-external command” message. To get around this issue we have to check the system PATH variable which may be empty or contain incorrect paths.

To ‘Set Executable Path In The Environment Variable’ follow the steps below:

Get the path of the file:

Search `Jypter' in the search bar and when 'jypter' appears right click on it and open the file location, this is the file location  we need to add to the environment




Set the environment variable:

Type system variables in the windows search bar or go to Control Panel>System and Security>System

Select the Advanced tab and then click on the Environment variable option as displayed below in the System Properties pane.

Or there is a shortcut just type ‘System Variables” in the windows search bar like the following:


Click on Environment Variables, select ‘path’ from the list, and click the Edit button. Now set the path as shown in the image below

Select the System variable path, click the ‘Edit’ button and enter the following path as shown in the screenshot below

After the path is defined just click OK and then OK again.

Now again go to Command Prompt and type ‘jupyter notebook’ you will find that there would be no error:

You get the following page opened in URL ie localhost:8888/tree

There are chances you  may still get the same error ie “jupyter is not recognized as an internal or external command”  so if such is the case try to restart the command prompt console  and also make sue you do it as administrator

Conclusion:

So in this article, we discussed what causes the ‘“jupyter is not recognised as an internal or external command” error and we found `two important solutions to get around this issue one of them is by setting the environment variable and another solution was by installing the ‘jypter’ of course if it was not installed by default when Python was installed. Hope this has helped you progress further and saved you a lot of time to keep searching on the net. Please put your comments and feedback if you enjoyed reading this article.

Is not recognized as an internal or external command batch file?

If you meet the error “command is not recognized as an internal or external command, operable program or batch file” problem in Command Prompt in Windows 10, the reason may be that the Windows Environment Variables are messed up. Check what Windows Environment Variables are and how to fix this error below.

Why is WMIC not recognized?

If the WMI Service is already running or if after starting the WMI Service, the error still persists, the problem is occurring because the WMIC program is not available in the system path. To fix the issue, you have to add the path where the WMIC executable is located to the System Variable.

Why is Pip not recognized?

A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.

Is Not an internal or external command?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues. Launch a Command Prompt window on your PC.