问题
参考上一篇博客,安装ipykernel后,可以在jupyter中打开虚拟环境。并运行。但对于不同的python版本,会出现IOloop等错误。
问题来源
tornado包的版本问题
jupyter的版本问题
jupyter client
针对jupyter问题,参考stackoverflow上的解决方式link
可以在anaconda上运行python3.5的虚拟环境。
tornado
安装同一个5.X版本
jupyterlab
卸载虚拟环境的 jupyter_core 和jupyter_client
在虚拟环境中安装 jupyterlab
在base中可以通过jupyter切换虚拟环境。
下图为:base(python=3.7)的jupyter运行py27(python=2.7)的虚拟环境。