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.
- Open cmd.
- Type:
pip install notebook. - If you Type:
**jupyter notebook**- it always shows an error. - So, Type:
python -m notebook.
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.
Answer from Aakash Garg on Stack Overflowpython - 'Jupyter' is not recognized as an internal or external command - Stack Overflow
python - How can I fix "'jupyter' is not recognized as an internal or external command, operable program or batch file" when running Jupyter on Windows? - Stack Overflow
ubuntu - After installing with pip, "jupyter: command not found" - Stack Overflow
Error while running 'jupyter-lab' or 'jupyter lab' on Windows machine
Videos
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.
- Open cmd.
- Type:
pip install notebook. - If you Type:
**jupyter notebook**- it always shows an error. - So, Type:
python -m notebook.
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.
I've just fixed this issue on my windows 10 machine. My path contained
C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\
where 'user' is my windows username, however for some reason jupyter.exe installed in
C:\Users\user\AppData\Roaming\Python\Python37\Scripts
I'm not really sure why and I'd like to get to the bottom of it, but adding both the local and roaming version to my path fixed this.
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
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 :)
Try
python -m notebook
Or, if you used pip3 to install the notebook:
python3 -m notebook
On Mac OS Catalina and brewed Python3.7
you did not log out and log in ? It should be on your path to execute. If not, pip installed executables in .local, so in a terminal:
~/.local/bin/jupyter-notebook
should start notebook
So I found one issue for me that is related to Python 3.8 and Jupyter. I did all the steps above but none of them really worked.
The function time.clock() has been removed, after having been deprecated since Python 3.3: use time.perf_counter() or time.process_time() instead, depending on your requirements, to have well-defined behavior. (Contributed by Matthias Bussonnier in bpo-36895.)
it from here, I downgraded to python 3.7 and it worked.
A 100% working solution:
This is due to "Environment Variables"
Follow these steps:
- Open the folder where you downloaded "python-3.8.2-amd64.exe" setup or any other version of python package
- Double click on "python-3.8.2-amd64.exe'
- Click "Modify"
- You will see "Optional features"
- Click "next"
- Select "Add python to environment variables"
- Click "install"
Then you can run jupyter in any desired folder you desire
E.g open the "cmd" command prompt and type:
E:
E:> jupyter notebook
It will get started without showing
Jupyter' is not recognized
I decided to learn me some python with the help of this gent here https://codewithmosh.com/p/python-programming-course-beginners
On the machine learning tutorial (https://www.youtube.com/watch?v=_uQrJ0TkZlc&t=15022s), the command that Mosh said to enter in the terminal screen was "jupyter notebook". After following the installation instructions of his to a 't' on Windows 10, I received this message
"(venv) C:\Users\User\PycharmProjects\Test>jupyter notebook'jupyter' is not recognized as an internal or external command,operable program or batch file."
Here is what worked for me to fix this...
-
In the terminal window on Pycharm enter "pip install jupyterlab"
-
After everything loads, in the same terminal, enter "jupyter notebook". After that everything worked for me.
-
(Possible Scenario) During the troubleshooting, before if found the "pip install jupyterlab" work-around, I had uninstalled and reinstalled Anaconda and selected the "not recommended" path option checkbox during the installation. Not sure if that had anything to do with the success, but it may be useful info.
Update: the next step on this tutorial is to "import pandas as pd" on a jupyter notebook.
Using this work-around seems to make this not possible for some reason. Any advice?