问题
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