博主原本只安装了python2的jupyter notebook,后来因需要用pip3 install jupyter notebook安装了python3的jupyter notebook之后,用jupyter notebook命令打开jupyter notebook后界面的kernel选项已经显示可以Change kernel,但切换为python3的kernel后,通过

import sys
sys.path

查看显示的python环境变量仍是python2的,上网搜了一通才知道在jupyter中使用不同kernel需要自己手动新建,为防遗忘做点记录,下面是官网的操作说明及截图。
kernels for python2 and python3
这里写图片描述

参考资料:
https://blog.csdn.net/silence2015/article/details/73650665

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐