[英]how to install multiple python versions on snow leopard?
whats is the current best practice for installing multiple versions of python on snow leopard? 什么是目前在雪豹上安装多个版本的python的最佳实践?
any thoughts ? 有什么想法吗 ?
Snow leopard already contains python 2.5 and python 2.6, no issues there. 雪豹已经包含python 2.5和python 2.6,没有问题。
If you require obscure modifications to the python installations, just compile your own, and put it in some place where it won't conflict with the system python. 如果你需要对python安装进行模糊的修改,只需编译自己的,并将它放在一个不会与系统python冲突的地方。 (I suggest /opt/your-pythonx.y).
(我建议/opt/your-pythonx.y)。
As an aside, check: "man python" on mac to see how to use the 32-bit, or 64-bit options if that turns out to be neccessary. 顺便说一句,检查:mac上的“man python”,看看如何使用32位或64位选项,如果结果是必要的话。 (Sometimes it is for c modules)
(有时是c模块)
I use the python_select
utility to switch between versions (it takes care of all the paths and links). 我使用
python_select
实用程序在版本之间切换(它负责所有路径和链接)。 It's easy to install with MacPorts or fink, so I would guess you can install the same utility with Homebrew. 使用MacPorts或fink很容易安装,所以我猜你可以用Homebrew安装相同的实用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.