Juypter-将模块安装到特定内核

时间:2019-07-04 01:45:31

标签: python azure jupyter-notebook

在Jupyter终端中,我做了pip install azure-storage,但是每当我去笔记本电脑尝试import azure-storage时,我都会在module not found的地方遇到错误。

四处看看,我发现了命令jupyter kernelspec list-返回:

Available kernels:                                                                                                                  
  python2           /usr/bin/anaconda/lib/python2.7/site-packages/ipykernel/resources                                               
  pyspark3kernel    /usr/local/share/jupyter/kernels/pyspark3kernel                                                                 
  pysparkkernel     /usr/local/share/jupyter/kernels/pysparkkernel                                                                  
  sparkkernel       /usr/local/share/jupyter/kernels/sparkkernel  

现在我在想,如果我pip install <whatever>会去我想要使用的内核之外的其他内核,因此我会得到module not found

听起来有效吗?

如果是这样,我该如何实际安装到pyspark3kernel

此外,我还尝试直接在笔记本本身中将!!pip install azure-storage一起使用-但是会不断返回语法错误。

任何帮助表示赞赏。

谢谢。

0 个答案:

没有答案