首页 文章

在本地安装jupyter后,我无法运行jupyter笔记本

提问于
浏览
1

在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在〜/ .local / lib / python2.7 / site-packages(来自jupyter)要求已满意:qtconsole在〜/ .local / lib / python2.7 / site-packages(来自jupyter)要求已经满足:jupyter-console在〜/ .local / lib / python2.7 / site-packages中(来自jupyter)要求已满意:〜/ .local / lib / python2.7 / site-packages中的nbconvert(来自jupyter)需求已满足:〜/ .local / lib / python2.7 / site-packages中的traitlets> = 4.2.1(来自ipywidgets-> jupyter)需求已满足:〜/ .local / lib / python2.7 / site-packages中的ipython> = 4.0.0(来自ipywidgets-> jupyter)需求已满足:widgetsnbextension> = 1.2.6 in~ / . 本地/ lib目录/ python2.7 /站点包年龄(来自ipywidgets-> jupyter)要求已经满足:龙卷风> = 4 in~ / .local / lib / python2.7 / site-packages(来自notebook-> jupyter)要求已经满足:terminado> = 0.3.3; 〜/ .local / lib / python2.7 / site-packages中的sys_platform!=“win32”(来自notebook-> jupyter)需求已满足:〜/ .local / lib / python2.7 / site-packages中的jupyter-core (来自notebook-> jupyter)要求已经满足:jinja2在〜/ .local / lib / python2.7 / site-packages(来自notebook-> jupyter)要求已经满足:〜/ .local / lib / python2中的ipython-genutils .7 / site-packages(来自notebook-> jupyter)要求已经满足:nbformat在〜/ .local / lib / python2.7 / site-packages(来自notebook-> jupyter)要求已经满足:jupyter-client in~ / .local / lib / python2.7 / site-packages(来自notebook-> jupyter)要求已经满足:〜/ .local / lib / python2.7 / site-packages中的pygments(来自qtconsole-> jupyter)要求已经满足: prompt-toolkit <2.0.0,> = 1.0.0 in~ / .local / lib / python2.7 / site-packages(来自jupyter-console-> jupyter)要求已经满足:mistune!= 0.6 in~ / .local /lib/python2.7/site-packages(来自nbconvert-> jupyter)要求已经sa tisfied:〜/ .local / lib / python2.7 / site-packages中的入口点(来自nbconvert-> jupyter)要求已经满足:〜/ .local / lib / python2.7 / site-packages中的装饰器(来自traitlets> = 4.2.1-> ipywidgets-> jupyter)要求已经满足:enum34; 〜/ .local / lib / python2.7 / site-packages中的python_version ==“2.7”(来自traitlets> = 4.2.1-> ipywidgets-> jupyter)需求已经满足:〜/ .local / lib / python2中有6个.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-get-terminal-size; 〜/ .local / lib / python2.7 / site-packages中的python_version ==“2.7”(来自ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求:〜/ .local / lib中的simplegeneric> 0.8 /python2.7/site-packages(来自ipython> = 4.0.0-> ipywidgets-> jupyter)要求已经满足:〜/ .local / lib / python2.7 / site-packages中的pickleshare(来自ipython> = 4.0 . 0-> ipywidgets-> jupyter)要求已经满足:pexpect; 〜/ .local / lib / python2.7 / site-packages中的sys_platform!=“win32”(来自ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求:pathlib2; 〜/ .local / lib / python2.7 / site-packages中的python_version ==“2.7”或python_version ==“3.3”(来自ipython> = 4.0.0-> ipywidgets-> jupyter)已满足要求:backports.ssl 〜/ .local / lib / python2.7 / site-packages中的-match-hostname(来自tornado> = 4-> notebook-> jupyter)要求已经满足:〜/ .local / lib /中的backports-abc> = 0.4 python2.7 / site-packages(来自tornado> = 4-> notebook-> jupyter)要求已经满足:〜/ .local / lib / python2.7 / site-packages中的certifi(来自tornado> = 4-> notebook- > jupyter)要求已经满足:在〜/ .local / lib / python2.7 / site-packages中的singledispatch(来自tornado> = 4-> notebook-> jupyter)要求已经满足:〜/ .local / lib / python2中的ptyprocess .7 / site-packages(来自terminado> = 0.3.3; sys_platform!=“win32” - > notebook-> jupyter)要求已经满意:〜/ .local / lib / python2.7 / site-packages中的MarkupSafe(来自jinja2-> notebook-> jupyter)要求已经满足:jsonschema!= 2.5.0,> = 2.0 in~ / .local / lib / python2.7 / site-packages(来自nbformat-> notebook-> jupyter)需求已经满足:pyzmq> = 13 in~ / .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中(来自entrypoints-> nbconvert-> jupyter)要求已经满足:functools32; 〜/ .local / lib / python2.7 / site-packages中的python_version ==“2.7”(来自jsonschema!= 2.5.0,> = 2.0-> nbformat-> notebook-> jupyter)安装收集的软件包:jupyter已成功安装jupyter-1.0.0

1 回答

  • 1

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

相关问题