在jupyter中配置python3

1、首先按照https://www.pyimagesearch.com/2017/09/25/configuring-ubuntu-for-deep-learning-with-python/ 地址中的内容配置好virtualevn虚拟环境,

  假设当前虚拟环境为dl4cv,则首先启动它:workon dl4cv, 键入: $: python, 将看到当前虚拟环境为python3.6.1即python3的环境。

2、输入 $: jupyter notebook,将启动浏览器jupyter,启动后,点击右侧图标 New,如果只有Python2,则首先退出该jupyter

3、在dl4cv虚拟下,安装jupyter: pip install ipython 以及 pip install jupyter

4、等待安装完成,通过命令:$: python -m ipykernel install --user  将当前环境的python3加入到jupyter中。

5、此时再次键入: $: jupyter notebook,将启动浏览器jupyter,启动后,点击右侧图标 New,将能同时看到Python2和Python3。

posted @ 2018-08-25 15:31  自强厚德  阅读(4213)  评论(0编辑  收藏  举报