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。

相关文章:

  • 2021-09-04
  • 2021-04-15
  • 2021-08-12
  • 2021-04-09
  • 2021-10-26
  • 2021-11-29
猜你喜欢
  • 2021-08-23
  • 2021-04-12
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-05-04
  • 2021-11-19
相关资源
相似解决方案