在jupyter中配置python3

2021-07-16 13:07

阅读:663

标签:virt   virtual   --   pip   ges   ima   www.   with   book   

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。

在jupyter中配置python3

标签:virt   virtual   --   pip   ges   ima   www.   with   book   

原文地址:https://www.cnblogs.com/paladinzxl/p/9534326.html


评论


亲,登录后才可以留言!