2017-07-14 85 views
1

我正在運行一個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

enter image description here

+0

如果你還沒有d一個已經在內核下拉菜單中重新啓動內核。如果這不是問題,我會重新安裝內核。你沒有任何機會使用Conda? –

+0

使用pip而不是pip3重新安裝jupyter是有效的 – mhn

回答

0

用pip而不是pip3重新安裝Jupyter是什麼工作