OSError:[未找到Errno'jupyter-notebook'] 2 [英] OSError: [Errno 'jupyter-notebook' not found] 2

查看:314
本文介绍了OSError:[未找到Errno'jupyter-notebook'] 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在桌面上安装了" Anaconda3-4.3.1-Windows-x86_64 ",但是当我从命令行运行命令" jupyter笔记本"时,出现以下错误CMD.

Hi I have installed "Anaconda3-4.3.1-Windows-x86_64" in my desktop but i get below error when I run the command "jupyter notebook" from CMD.

错误:

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

推荐答案

安装anaconda之后, 使用以下命令创建新环境

After installing anaconda, create a new environment using the following command

conda create -n yourenvname python=x.x anaconda

然后使用

source activate yourenvname

现在安装jupyter

Now install jupyter

conda install jupyter

然后运行 jupyter-notebook

这篇关于OSError:[未找到Errno'jupyter-notebook'] 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆