【问题标题】:How to select anaconda environment for jupyter notebook?如何为 jupyter notebook 选择 anaconda 环境?
【发布时间】:2017-11-03 16:55:02
【问题描述】:

从环境下启动笔记本没有帮助:

(py35) dims@calculon:~/Design/RAD$ jupyter notebook
[I 19:50:24.226 NotebookApp] JupyterLab alpha preview extension loaded from /opt/anaconda3/lib/python3.5/site-packages/jupyterlab
JupyterLab v0.27.0
Known labextensions:
[I 19:50:24.227 NotebookApp] Running the core application with no additional extensions or settings
[I 19:50:24.229 NotebookApp] Serving notebooks from local directory: /home/dims/Design/RAD
[I 19:50:24.229 NotebookApp] 0 active kernels
[I 19:50:24.229 NotebookApp] The Jupyter Notebook is running at:

给予

同时

(py35) dims@calculon:~/Design/RAD$ python
Python 3.5.4 |Anaconda, Inc.| (default, Oct 13 2017, 11:22:58)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import treelib
>>>

treelib 包在 jupyter notebook 下不可用,而在py35 环境下可用。

如何解决?

【问题讨论】:

    标签: python anaconda jupyter-notebook


    【解决方案1】:

    从终端或 cmd 执行以下操作:

    conda install nb_conda
    

    这将使 conda 内核在 jupyter notebook 中可用。您将不得不退出 jupyter 并重新启动它。 jupyter nonotebook 现在也可以使用所有其他 conda 环境。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-09-08
      • 2019-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-23
      • 2021-06-07
      • 1970-01-01
      相关资源
      最近更新 更多