您的位置:首页 > 编程语言 > Python开发

mac 上的 python

2016-07-14 10:06 537 查看

1.mac 上的 python

自己感觉很乱

1.额外安装的



自带的 python27-apple

/System/Library/Frameworks/Python.framework/Versions/2.7



2.查看 python 版本

推荐mac上很好用的小工具macports。
我們可以使用 port select 指令切換 Python 系統,比如 port select python
Available versions for python:
none
python25-apple
python26-apple
python27
python27-apple (active)

這代表目前使用的是 Mac OS 內建的 Python 2.7,我們可以切換掉 MacPorts 內建的 Python 2.7

3. 查看 python 路径

which python
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: