我的 python2 口译员呢?
Where's my python2 interpreter?
自从在我的 mac 上安装 Anaconda 后,术语 'python' 和 'python3' 都会启动 python 3.5.1 Anaconda 解释器,尽管我也有 2.6 和 2.7安装(好吧,它们预装在 mac 上)。
到目前为止,我一直在学习 python3 中的奇数位,但我已经开始了一门需要 2.7 的课程,所以我需要知道如何使用它。
正确的菜鸟问题我知道,但我是菜鸟...
输入 python2.7
并点击 Enter
如果你想知道路径
尝试which python2.7
,例如:
$which python2.7
/Users/haifzhan/.virtualenvs/env-2.7/bin/python2.7
自从在我的 mac 上安装 Anaconda 后,术语 'python' 和 'python3' 都会启动 python 3.5.1 Anaconda 解释器,尽管我也有 2.6 和 2.7安装(好吧,它们预装在 mac 上)。 到目前为止,我一直在学习 python3 中的奇数位,但我已经开始了一门需要 2.7 的课程,所以我需要知道如何使用它。
正确的菜鸟问题我知道,但我是菜鸟...
输入 python2.7
并点击 Enter
如果你想知道路径
尝试which python2.7
,例如:
$which python2.7
/Users/haifzhan/.virtualenvs/env-2.7/bin/python2.7