'Jupyter notebook will not open from command prompt
I am trying to work with Jupyter notebook on Windows 10 (64-bit). I downloaded Anaconda3 5.0.1. Now I should be able to open the jupyter notebook from the command prompt by typing jupyter notebook. However I get the following error:
The only way I am able to open jupyter notebook is from the Anaconda navigator. However, I would like to change the directory from which the notebook opens and none of the solutions here How to change the Jupyter start-up folder work if I cannot open jupyther from the command prompt. I have already tried uninstalling and reinstalling anaconda, but that did not change anything.
Solution 1:[1]
This error is because you didn't set environment after installing Anaconda. Go through following steps to solve this issue
- Search in start "Edit the system environment variable" and open it.
- Click environment variables button
Go to there and add 2 directory path where you installed Anaconda
i.e. 1. C:\ProgramData\Anaconda3 2. C:\ProgramData\Anaconda3\Scripts
Hope this will solve your error :)
Solution 2:[2]
If you have:
- Jupiter installed directly from Python (not anaconda)
- PATH already configured (in case of not, you can do it manually from Windows system advanced menu)
try with: py -m jupyter notebook
It should work ;)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Rahul Vansh |
Solution 2 | Flavio Cacchioni |