I was coming across the same issue in windows 10 but updating the environment variable following the given steps below, it tends to be working fine.
I know It is a lengthy answer for the simple environment setups, I thought it may be useful for the new window 10 users. Please follow the steps below:-
1) Open Anaconda Prompt:
2) Check Conda Installed Location.
where conda
3) Open Advanced System Settings
4) Click on Environment Variables
5) Edit Path
6) Add New Path
C:\Users\RajaRama\Anaconda3\Scripts C:\Users\RajaRama\Anaconda3 C:\Users\RajaRama\Anaconda3\Library\bin
7) Open Command Prompt and Check Versions
8) After 7th step type conda install anaconda-navigator in cmd then press y
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. 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.
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 systemif 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
- What is "Jupyter' is not recognized as an internal or external command, operable program or batch file."?
- Why "Jupyter' is not recognized as an internal or external command, operable program or batch file." happens?
- How to resolve:
- Solution 1: Install jupyter on your windows system
- Solution 2: Set Executable Path In The Environment Variable
- Conclusion
What is “Jupyter' is not recognized as an internal or external command, operable program or batch file.”?
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 jupyterSolution 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.