在 Linux 红帽上:
我尝试在本地安装jupyter:
$ pip install jupyter --user
似乎一切都安装正确......
但是-我不能小跑Jupyter笔记本, nor ~/.local/bin/jupyter 笔记本
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)
已满足要求:ipykernel in
〜/.local/lib/python2.7/site-packages(来自jupyter)
已满足要求:qtconsole in
〜/.local/lib/python2.7/site-packages(来自jupyter)
已满足要求:jupyter-console in
〜/.local/lib/python2.7/site-packages(来自jupyter)
已满足要求:nbconvert in
〜/.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) 已满足要求:
widgetsnbextension>=1.2.6 中
〜/.local/lib/python2.7/site-packages(来自
ipywidgets->jupyter) 已满足要求:tornado>=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(来自
笔记本-> jupyter)已满足要求:ipython-genutils in
〜/.local/lib/python2.7/site-packages(来自
笔记本->jupyter)已满足要求:nbformat in
〜/.local/lib/python2.7/site-packages(来自
笔记本->jupyter)已满足要求:jupyter-client in
〜/.local/lib/python2.7/site-packages(来自
笔记本-> jupyter)已满足要求:pygments in
〜/.local/lib/python2.7/site-packages(来自
qtconsole->jupyter)已满足要求:
提示工具包 =1.0.0 中
〜/.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) 已满足要求:
安装工具>=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) 已满足要求:
简单通用>0.8 英寸
〜/.local/lib/python2.7/site-packages(来自
ipython>=4.0.0->ipywidgets->jupyter) 已满足要求:
pickleshare 位于 ~/.local/lib/python2.7/site-packages
(来自 ipython>=4.0.0->ipywidgets->jupyter)已满足要求
满意:期望; sys_platform != "win32" 中
〜/.local/lib/python2.7/site-packages(来自
ipython>=4.0.0->ipywidgets->jupyter) 已满足要求:
路径库2; 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(来自
龙卷风>=4->笔记本->jupyter) 已满足要求:
向后移植-abc>=0.4 英寸
〜/.local/lib/python2.7/site-packages(来自
龙卷风>=4->笔记本->jupyter) 已满足要求:certifi
在〜/.local/lib/python2.7/site-packages中(来自
龙卷风>=4->笔记本->jupyter) 已满足要求:
~/.local/lib/python2.7/site-packages 中的 singledispatch
(来自tornado>=4->notebook->jupyter)已满足要求:
ptyprocess 在 ~/.local/lib/python2.7/site-packages
(来自 terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter)
已满足要求:MarkupSafe in
〜/.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)已满足要求:
wcwidth 在 ~/.local/lib/python2.7/site-packages (来自
提示工具包 =1.0.0->jupyter-console->jupyter) 要求
已经满足:configparser>=3.5; python_version == "2.7" 中
〜/.local/lib/python2.7/site-packages(来自
入口点->nbconvert->jupyter)已满足要求:
函数工具32; python_version == "2.7" 中
〜/.local/lib/python2.7/site-packages(来自
jsonschema!=2.5.0,>=2.0->nbformat->notebook->jupyter) 安装
收集到的包:jupyter 成功安装jupyter-1.0.0
首先设置两个变量,其CMD命令如下:set PYSPARK_DRIVER_PYTHON_OPTS=notebook
set PYSPARK_DRIVER_PYTHON=ipython
现在使用命令运行 pysparkpyspark
,这将打开 8888(默认)端口,并且 jupyter 运行启动的 SparkContext。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)