在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。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM