如何在(ana)conda环境中的Jupyter中安装Apache Toree for Spark Kernel? [英] How to install Apache Toree for Spark Kernel in Jupyter in (ana)conda environment?

查看:436
本文介绍了如何在(ana)conda环境中的Jupyter中安装Apache Toree for Spark Kernel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 Jupyter -为 conda 环境(我使用 http://conda.pydata.org/docs/test-drive.html ) anaconda发行版. 我正在尝试使用 apache toree 作为

I am trying to install Jupyter-support for Spark in a conda environment (which I set up using http://conda.pydata.org/docs/test-drive.html) of the anaconda distribution. I am trying to use apache toree as Jupyter Kernel for this.

这是我安装Anaconda之后所做的事情:

Here is what I did after I installed Anaconda:

conda create --name jupyter python=3
source activate jupyter
conda install jupyter
pip install --pre toree
jupyter toree install

一切正常,直到我到达最后一行.我知道了

Everything worked fine until I reached the last line. There I get

PermissionError: [Errno 13] Permission denied: '/usr/local/share/jupyter'

哪个提出了问题:为什么它甚至在该目录中查找?毕竟,它应该留在环境中.这样我就算了

Which begs the question: Why is it even looking in that directory? Afterall it is supposed to stay in the environment. Thus I exectue

jupyter --paths

并获得

config:
    /home/user/.jupyter
    ~/anaconda2/envs/jupyter/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/user/.local/share/jupyter
    ~/anaconda2/envs/jupyter/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /run/user/1000/jupyter

我不太确定正在发生什么以及如何继续在conda环境"jupyter"(如果可能的话)中运行所有内容.

I am not quite sure what is going on and how to proceed to get everything running in (and if possible only in) the conda environment "jupyter".

推荐答案

Jupyter默认尝试将内核安装到系统范围的内核注册表中.您可以传递--user标志,它将使用用户内核目录.有关更多详细信息,请参见 kernelspec.py . 以下命令将toree内核安装到用户内核中

Jupyter tries to install kernel into systemwide kernel registry by default. You can pass a --user flag and it will use a user kernel dir. More details are available in kernelspec.py. Following command installs toree kernel into the user kernel

jupyter toree install --user

这篇关于如何在(ana)conda环境中的Jupyter中安装Apache Toree for Spark Kernel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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