linux中jupyter notebook使用时须更改内核
使用jupyter notebook在linux中与在windows中不同
- 在windows
在新建的conda环境下,如果没有安装jupyter notebook,就不能在这个conda环境中使用jupyter notebbok - 在linux
在新建conda环境中,不需要新安装jupyter notebook就可以直接使用jupyter notebook。但是打开jupyter之后,默认使用base环境中的python解释器,这个很容易被忽略,因而不断报错。
解决
在新建conda环境中使用jupyter,须更换jupyter的kernel
具体操作参考:
JupyterNotebook设置Python环境https://xmfbit.github.io/2018/04/09/set-env-in-jupyternotebook/