在linux上redhat: 我尝试在本地安装jupyter:
$ pip install jupyter --user
似乎一切都安装得正确......
但是 - 我不能错过 jupyter notebook ,也不能〜/ .local / bin / jupyter notebook 为什么呢?
安装......
$ 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 in 〜/ .local / lib / python2.7 / site-packages(来自 ipywidgets-> jupyter)要求已经满足:龙卷风> = 4 in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:terminado> = 0.3.3; sys_platform!=" win32"在 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:jupyter-core in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:jinja2 in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:ipython-genutils in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:nbformat in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:jupyter-client in 〜/ .local / lib / python2.7 / site-packages(来自 notebook-> jupyter)要求已经满足:pygments in 〜/ .local / lib / python2.7 / site-packages(来自 qtconsole-> jupyter)要求已经满足: prompt-toolkit< 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)要求已经满足:decorator in 〜/ .local / lib / python2.7 / site-packages(来自 traitlets> = 4.2.1-> ipywidgets-> jupyter)要求已经满足: enum34; 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 in 〜/ .local / lib / python2.7 / site-packages(来自 ipython> = 4.0.0-> ipywidgets-> jupyter)要求已经满足: backports.shutil-得到末端尺寸; 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)要求已经满足: pickleshare在〜/ .local / lib / python2.7 / site-packages中 (来自ipython> = 4.0.0-> ipywidgets-> jupyter)要求已经 满意的:pexpect; 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 in 〜/ .local / lib / python2.7 / site-packages(来自 龙卷风> = 4-> notebook-> jupyter)要求已经满足: backports-abc> = 0.4 in 〜/ .local / lib / python2.7 / site-packages(来自 龙卷风> = 4-> notebook-> jupyter)要求已经满足:certifi 在〜/ .local / lib / python2.7 / site-packages(来自 龙卷风> = 4-> notebook-> jupyter)要求已经满足: singledispatch在〜/ .local / lib / python2.7 / site-packages中 (来自龙卷风> = 4-> notebook-> jupyter)要求已经满足: 〜/ .local / lib / python2.7 / site-packages中的ptyprocess (来自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 in 〜/ .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(来自 prompt-toolkit< 2.0.0,> = 1.0.0-> jupyter-console-> jupyter)要求 已满意:configparser> = 3.5; python_version ==" 2.7"在 〜/ .local / lib / python2.7 / site-packages(来自 入口点 - > nbconvert-> jupyter)要求已经满足: functools32; python_version ==" 2.7"在 〜/ .local / lib / python2.7 / site-packages(来自 jsonschema!= 2.5.0,> = 2.0-> nbformat-> notebook-> jupyter)安装 收集的软件包:jupyter成功安装了jupyter-1.0.0
答案 0 :(得分:1)
首先设置两个CMD命令如下的变量:
set PYSPARK_DRIVER_PYTHON_OPTS=notebook
set PYSPARK_DRIVER_PYTHON=ipython
现在使用命令pyspark
运行pyspark,它将打开8888(默认)端口,jupyter运行启动的sparkContext。