How to switch to python 2.7 from python 3- jupyter notebook

社会主义新天地 提交于 2019-12-10 11:35:38

问题


I am running a Jupyter notebook instance and it has both python 2 and python 3 kernels. However, when i use the python 2 kernel and execute below statements,

import sys
sys.executable

I get python 3 path

'/usr/bin/python3.4'

How do i force it to use python 2.7


回答1:


Re-installing Jupyter with pip instead of pip3 is what worked



来源:https://stackoverflow.com/questions/45106616/how-to-switch-to-python-2-7-from-python-3-jupyter-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!