也许很多人会问,用PyCharm开发python挺好的,干嘛要使用jupyter notebook呢?
答案很简单,PyCharm有很多插件没有,比如说:import matplotlib.pyplot as plt等等,还有很多
1.先通过命令行(命令提示符)把环境切换为py3 —— activate py3
2.输入以下命令:
python -m ipykernel install --user
3.启动 jupyter notebook
4.新建 —— 出现两个选项python2 & python3
5.通过新建里面的kernel——change kernel也能切换python2 & python3