2017-05-08 59 views
3

您好我已經在我的桌面上安裝了「Anaconda3-4.3.1-Windows的x86_64的」但我得到以下錯誤,當我運行命令「jupyter筆記本「來自CMD的」「。OSERROR:[錯誤「jupyter筆記本」未找到2

錯誤:

C:\Users\my pc>jupyter notebook 
Traceback (most recent call last): 
File "C:\Users\pr275959\AppData\Local\Continuum\Anaconda3\Scripts\jupyter-script.py", line 5, in <"module"> 
    sys.exit(jupyter_core.command.main()) 
File "C:\Users\pr275959\AppData\Local\Continuum\Anaconda3\lib\site-packages\jupyter_core\command.py", line 186, in main 
_execvp(command, sys.argv[1:]) 
    File "C:\Users\pr275959\AppData\Local\Continuum\Anaconda3\lib\site-packages\jupyter_core\command.py", line 104, in _execvp 
    raise OSError('%r not found' % cmd, errno.ENOENT) 
OSError: [Errno 'jupyter-notebook' not found] 2 

enter image description here

回答

4

安裝蟒蛇後, 使用以下命令

conda create -n yourenvname python=x.x anaconda

然後主動使用

環境創建一個新的環境

source activate yourenvname

現在安裝jupyter

conda install jupyter

然後,運行 jupyter-notebook

0

對於我來說,只是安裝jupyter全球解決它:

conda install jupyter