从环境下启动笔记本无济于事:
(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
>>>
即。 {jupyter笔记本下的treelib
包不可用,而py35
环境下可用。
如何解决?
答案 0 :(得分:0)
在终端或cmd中执行以下操作:
conda install nb_conda
这将使jupyter Notebook可以使用conda内核。您将必须退出jupyter并重新启动。 jupyter nootebook现在也可以使用所有其他conda环境。