Jupyter notebook will not open from command prompt

江枫思渺然 提交于 2019-12-06 07:21:54

问题


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.


回答1:


This error is because you didn't set environment after installing Anaconda. Go through following steps to solve this issue

  1. Search in start "Edit the system environment variable" and open it.
  2. Click environment variables button
  3. 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 :)



来源:https://stackoverflow.com/questions/47318033/jupyter-notebook-will-not-open-from-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!