如何切换到python 2.7从python 3 jupyter笔记本
问题描述:
我正在运行一个Jupyter笔记本实例,它同时具有python 2和python 3内核。然而,当我使用Python 2内核并执行以下语句,如何切换到python 2.7从python 3 jupyter笔记本
import sys
sys.executable
我得到的Python 3路
'/usr/bin/python3.4'
如何强制它使用Python 2.7
答
用pip而不是pip3重新安装Jupyter是什么工作
如果你还没有d一个已经在内核下拉菜单中重新启动内核。如果这不是问题,我会重新安装内核。你没有任何机会使用Conda? –
使用pip而不是pip3重新安装jupyter是有效的 – mhn