

#OPEN JUPYTER NOTEBOOK FULL#
If this wasn't the case you would have to type the full path to the executable file in the terminal: C:\Users\YOUR-USERNAME> C:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39\python) We have a Python executable file in the PATH, that's why you can start the Python interpreter from the terminal with just typing python. Voilà! We have the python.exe file (an executable). This is the place where Python version 3.9 is installed. You can see this folder: C:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39. (some other paths were taken out for clarity) You can check the content of that PATH variable with: > import sysĬ:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39\python39.zipĬ:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39\DLLsĬ:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39\libĬ:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39Ĭ:\Users\YOUR-USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages Having to give the full path to the executable. The paths specified in the variable, at the command prompt without It basically allows you to run any executables, that are located inside You probably did it at installation time or afterwards.īut, what is this PATH environment variable?
#OPEN JUPYTER NOTEBOOK WINDOWS#
You probably already know (but maybe don't) that this is because Python was added to the Windows PATH environment variable. Type "help", "copyright", "credits" or "license" for more information. Have you ever wondered why you can type python in the terminal (command prompt) and suddenly start the Python interpreter? Microsoft Windows You'll see why you can do that from the terminal and we'll end up on why and how you can run the jupyter notebook from the terminal as well.

I'll first start with common things like running the python shell from the terminal or running pip. If you think it's too basic at the beginning, go to the end of this "article". I'll try to make a step-by-step answer so everything is explained clearly. 1)What's going on? Why is this error happening? I will try to explain why this is happening and then provide some solutions. Other answers provide a solution, but they don't explain why you and I are having this problem. I had the exact same problem and it was driving me crazy. If you are using python3, switch out python with python3īut I encourage you to use pyenv instead :) $ ::SetEnvironmentVariable("Path", $env:Path + " C:\Users\\AppData\Roaming\Python\Python35\Scripts", ::User) BE SURE TO ADD THE " " before adding the new path. So if you want to be able to execute a program via command line, you need to add it into the %PATH variable. c/Users//AppData/Local/Programs/Python/Python35-32/pythonĪfter some digging I found a executable for jupyter in the folder: C:\Users\\AppData\Roaming\Python\Python35\Scripts\jupyter.exeĭifference between local and roaming folder Pip does not add jupyter directly to path for local.
#OPEN JUPYTER NOTEBOOK INSTALL#
Otherwise $ python -m pip install jupyter -user Please try either of these commands first $ py -m notebook
