如何指示jupyter使用python2而不是python3

时间:2017-11-19 22:26:57

标签: python jupyter-notebook

鉴于PYTHONPATH似乎指向python

cat $(which jupyter)

#!/bin/bash
JUPYTER_PATH="/usr/local/etc/jupyter" 

PYTHONPATH="/usr/local/Cellar/jupyter/1.0.0_1/libexec/lib/python2.7/site-packages:
/usr/local/Cellar/jupyter/1.0.0_1/libexec/vendor/lib/python2.7/site-packages:
/usr/local/lib/python2.7/site-packages" 
exec "/usr/local/Cellar/jupyter/1.0.0_1/libexec/bin/jupyter" "$@"

那么为什么jupyter notebook会报告python3?

enter image description here

(顺便说一下:如何调整图片的大小 - 但只是缩放而不是裁剪?我尝试添加s并且只裁剪了一次)

1 个答案:

答案 0 :(得分:0)

当你打开一个新的笔记本时,你可以选择你想要使用的python版本

相关问题