问题描述
这让我发疯。我已经按照https://jupyterhub.readthedocs.io/en/stable/installation-guide-hard.html
上的说明设置了jupyterHub / jupyterLab服务器我遇到了一个奇怪的内核问题。不管内核规范如何(在JupyterLab和Jupyter中似乎都能正确显示),它们在启动时仍继续使用默认的系统python环境(例如/ usr / bin / python)
我的kernal.json看起来正确
{
"argv": [
"/opt/conda/envs/python/bin/python","-m","ipykernel_launcher","-f","{connection_file}"
],"display_name": "Python (default)","language": "python"
}
通过JupyterLab和命令行检查可用内核时,正确列出了内核
Available kernels:
python /opt/jupyterhub/share/jupyter/kernels/python
但是,一旦启动内核,我看到它继续使用默认的系统python(而不是每个内核规范文件3.7
Python 3.6.9 (default,Jul 17 2020,12:50:27)
Type 'copyright','credits' or 'license' for more information
IPython 7.16.1 -- An enhanced Interactive Python. Type '?' for help.
!which python
/usr/bin/python
我想念什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)