当我在Mac的终端中运行python
时,我会得到以下前两行:
Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
当我运行
python2.7
时,会得到以下结果:Python 2.7.5 (default, May 19 2013, 13:26:46)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
我可以在 Python 2.7 中识别
scipy
和 numpy
,但在普通的 Python 环境中无法识别。
它们之间的区别是什么?我有没有办法使 Python 能够 import scipy
?我是否可以将 Python2.7 别名为 Python 并忘记这个问题?