python - 如何更改 Mac Snow Leopard 中的默认 Python 版本?

标签 python macos

如何更改我的 Mac Snow Leopard 中使用的默认 Python 版本?我正在尝试从 v2.5 切换到 v3.0

最佳答案

不建议在没有任何需要的情况下更改任何系统上的系统 Python 安装。 最好在不同的位置安装 Python 3.X,并根据需要调整 $PATH。可能需要安装 Python 才能获得更深入的功能。所以保持原样并在不同位置安装任意 Python 解释器。 Macports 和 Brew 将自动执行此操作。如果您自己编译 Python:

 configure --prefix=/path/to/my/python/installation.

关于python - 如何更改 Mac Snow Leopard 中的默认 Python 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5752753/

相关文章:

Xcode分布式构建不起作用

python - 有什么方法可以让这个Python字符串语句更加Pythonic吗?

python - 多重索引和日期时间

xcode - 创建音频波可擦洗时间线。 swift 3 MacOS

c++ - 总线错误 : 10 while trying to mess with arrays

javascript - yarn 失败,类型错误 : Cannot read property 'yarnPath' of null

python - pandas - 检查数据框 groupby 中的非唯一值

python - Kivy:chow获取FloatLayout中心坐标

python - Bokeh 仅绘制来自网络抓取数据的特定列

swift - 使用 swift 在沙盒 Mac 应用程序中访问文件