在本地安装jupyter后,我无法运行jupyter notebook [英] after installing jupyter locally, I can't run jupyter notebook

查看:274
本文介绍了在本地安装jupyter后,我无法运行jupyter notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux redhat上: 我试图在本地安装jupyter:

On linux redhat: I tried to install jupyter locally:

$ pip install jupyter --user

似乎一切都已正确安装...

and it seems as everything was installed properly...

但是-我无法使用 jupyter笔记本,也不能〜/.local/bin/jupyter笔记本 为什么?

But - I cannot runt jupyter notebook, nor ~/.local/bin/jupyter notebook Why?

安装...

$ pip install jupyter --user 使用缓存收集Jupyter jupyter-1.0.0-py2.py3-none-any.whl要求已经满足: 〜/.local/lib/python2.7/site-packages中的ipywidgets (来自jupyter)要求已得到满足:笔记本在 〜/.local/lib/python2.7/site-packages(来自jupyter) 已经满足要求: 〜/.local/lib/python2.7/site-packages(来自jupyter) 已满足要求:qtconsole中 〜/.local/lib/python2.7/site-packages(来自jupyter) 已经满足要求:jupyter-console中 〜/.local/lib/python2.7/site-packages(来自jupyter) 已经满足要求:nb转换为 〜/.local/lib/python2.7/site-packages(来自jupyter) 已经满足要求:traitlets> = 4.2.1 in 〜/.local/lib/python2.7/site-packages(来自 ipywidgets-> jupyter)已满足要求:ipython> = 4.0.0 in 〜/.local/lib/python2.7/site-packages(来自 ipywidgets-> jupyter)已满足要求: 小部件nbextension> = 1.2.6 in 〜/.local/lib/python2.7/site-packages(来自 ipywidgets-> jupyter)已满足要求:龙卷风> = 4 in 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求:terminado> = 0.3.3; sys_platform!="win32"在 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求:jupyter-core in 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求:jinja2 in 〜/.local/lib/python2.7/site-packages(来自 notebook-> jupyter)要求已经满足:ipython-genutils在 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求:nbformat in 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求:jupyter-client在 〜/.local/lib/python2.7/site-packages(来自 笔记本-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages(来自 qtconsole-> jupyter)已满足要求: 提示工具包< 2.0.0,> = 1.0.0 in 〜/.local/lib/python2.7/site-packages(来自 jupyter-console-> jupyter)已满足要求:mistune!= 0.6 在〜/.local/lib/python2.7/site-packages中(来自 (nbconvert-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages(来自 (nbconvert-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages(来自 traitlets> = 4.2.1-> ipywidgets-> jupyter)已满足要求: 枚举34; python_version =="2.7"在 〜/.local/lib/python2.7/site-packages(来自 traitlets> = 4.2.1-> ipywidgets-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages中的六个(来自 traitlets> = 4.2.1-> ipywidgets-> jupyter)已满足要求: setuptools> = 18.5英寸 〜/.local/lib/python2.7/site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求: backports.shutil-get-terminal-size; python_version =="2.7"在 〜/.local/lib/python2.7/site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求: simplegeneric> 0.8 in 〜/.local/lib/python2.7/site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求: 在〜/.local/lib/python2.7/site-packages中进行pickleshare (来自ipython> = 4.0.0-> ipywidgets-> jupyter)要求已经 满意:期望; sys_platform!="win32"在 〜/.local/lib/python2.7/site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求: pathlib2; python_version =="2.7"或python_version =="3.3" 〜/.local/lib/python2.7/site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求: backports.ssl-match-hostname在 〜/.local/lib/python2.7/site-packages(来自 tornado> = 4-> notebook-> jupyter)已满足要求: backports-abc> = 0.4英寸 〜/.local/lib/python2.7/site-packages(来自 龙卷风> = 4->笔记本-> jupyter)要求已经满足:certifi 在〜/.local/lib/python2.7/site-packages中(来自 tornado> = 4-> notebook-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages中的singledispatch (来自龙卷风> = 4->笔记本-> jupyter)已经满足要求: 〜/.local/lib/python2.7/site-packages中的ptyprocess (从terminado> = 0.3.3; sys_platform!="win32"-> notebook-> jupyter) 已满足要求:MarkupSafe中 〜/.local/lib/python2.7/site-packages(来自 jinja2-> notebook-> jupyter)已满足要求: jsonschema!= 2.5.0,> = 2.0英寸 〜/.local/lib/python2.7/site-packages(来自 nbformat-> notebook-> jupyter)已满足要求:pyzmq> = 13 在〜/.local/lib/python2.7/site-packages中(来自 jupyter-client-> notebook-> jupyter)已满足要求: 〜/.local/lib/python2.7/site-packages中的wcwidth(来自 提示工具包< 2.0.0,> = 1.0.0-> jupyter-console-> jupyter)要求 已经满足:configparser> = 3.5; python_version =="2.7"在 〜/.local/lib/python2.7/site-packages(来自 entrypoints-> nbconvert-> jupyter)已满足要求: functools32; python_version =="2.7"在 〜/.local/lib/python2.7/site-packages(来自 jsonschema!= 2.5.0,> = 2.0-> nbformat->笔记本-> jupyter)安装 收集的软件包:jupyter成功安装了jupyter-1.0.0

$ pip install jupyter --user Collecting jupyter Using cached jupyter-1.0.0-py2.py3-none-any.whl Requirement already satisfied: ipywidgets in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: notebook in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: ipykernel in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: qtconsole in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: jupyter-console in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: nbconvert in ~/.local/lib/python2.7/site-packages (from jupyter) Requirement already satisfied: traitlets>=4.2.1 in ~/.local/lib/python2.7/site-packages (from ipywidgets->jupyter) Requirement already satisfied: ipython>=4.0.0 in ~/.local/lib/python2.7/site-packages (from ipywidgets->jupyter) Requirement already satisfied: widgetsnbextension>=1.2.6 in ~/.local/lib/python2.7/site-packages (from ipywidgets->jupyter) Requirement already satisfied: tornado>=4 in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: terminado>=0.3.3; sys_platform != "win32" in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: jupyter-core in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: jinja2 in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: ipython-genutils in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: nbformat in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: jupyter-client in ~/.local/lib/python2.7/site-packages (from notebook->jupyter) Requirement already satisfied: pygments in ~/.local/lib/python2.7/site-packages (from qtconsole->jupyter) Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in ~/.local/lib/python2.7/site-packages (from jupyter-console->jupyter) Requirement already satisfied: mistune!=0.6 in ~/.local/lib/python2.7/site-packages (from nbconvert->jupyter) Requirement already satisfied: entrypoints in ~/.local/lib/python2.7/site-packages (from nbconvert->jupyter) Requirement already satisfied: decorator in ~/.local/lib/python2.7/site-packages (from traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied: enum34; python_version == "2.7" in ~/.local/lib/python2.7/site-packages (from traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied: six in ~/.local/lib/python2.7/site-packages (from traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied: setuptools>=18.5 in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: backports.shutil-get-terminal-size; python_version == "2.7" in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: simplegeneric>0.8 in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: pickleshare in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: pexpect; sys_platform != "win32" in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: pathlib2; python_version == "2.7" or python_version == "3.3" in ~/.local/lib/python2.7/site-packages (from ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied: backports.ssl-match-hostname in ~/.local/lib/python2.7/site-packages (from tornado>=4->notebook->jupyter) Requirement already satisfied: backports-abc>=0.4 in ~/.local/lib/python2.7/site-packages (from tornado>=4->notebook->jupyter) Requirement already satisfied: certifi in ~/.local/lib/python2.7/site-packages (from tornado>=4->notebook->jupyter) Requirement already satisfied: singledispatch in ~/.local/lib/python2.7/site-packages (from tornado>=4->notebook->jupyter) Requirement already satisfied: ptyprocess in ~/.local/lib/python2.7/site-packages (from terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter) Requirement already satisfied: MarkupSafe in ~/.local/lib/python2.7/site-packages (from jinja2->notebook->jupyter) Requirement already satisfied: jsonschema!=2.5.0,>=2.0 in ~/.local/lib/python2.7/site-packages (from nbformat->notebook->jupyter) Requirement already satisfied: pyzmq>=13 in ~/.local/lib/python2.7/site-packages (from jupyter-client->notebook->jupyter) Requirement already satisfied: wcwidth in ~/.local/lib/python2.7/site-packages (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) Requirement already satisfied: configparser>=3.5; python_version == "2.7" in ~/.local/lib/python2.7/site-packages (from entrypoints->nbconvert->jupyter) Requirement already satisfied: functools32; python_version == "2.7" in ~/.local/lib/python2.7/site-packages (from jsonschema!=2.5.0,>=2.0->nbformat->notebook->jupyter) Installing collected packages: jupyter Successfully installed jupyter-1.0.0

推荐答案

首先设置两个其CMD命令在下面的变量: set PYSPARK_DRIVER_PYTHON_OPTS=notebook set PYSPARK_DRIVER_PYTHON=ipython 现在,使用命令pyspark运行pyspark,它将在jupyter运行启动的sparkContext的情况下打开8888(默认)端口.

Set two variables first whose CMD commands are below: set PYSPARK_DRIVER_PYTHON_OPTS=notebook set PYSPARK_DRIVER_PYTHON=ipython Now run pyspark with command pyspark, which will open 8888(default) port with jupyter running initiated sparkContext.

这篇关于在本地安装jupyter后,我无法运行jupyter notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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