Mac OS X 上 Python 的框架构建和非框架构建(即标准 UNIX 构建)之间有什么区别?另外,各有什么优缺点?
What are the differences between a Framework build and a non-Framework build (i.e., standard UNIX build) of Python on Mac OS X? Also, what are the advantages and disadvantages of each?
这是我在发布此问题之前找到的信息:
Here is the information that I found prior to posting this question:
在 Mac OS X 10.6 Snow Leopard 之前,我并没有考虑太多,因为我只是下载并安装了 Python 2.6.2 Mac Installer Disk Image,这是一个框架构建,我的业务使用 virtualenv、pip 等.但是,随着 Snow Leopard 到 64 位、gcc 等的变化.,我注意到一些问题让我想自己从源代码构建/编译 Python 2.6.2+,这让我想到了将 Python 构建为 MacOSX|Darwin 框架的区别和优点/缺点.
Prior to Mac OS X 10.6 Snow Leopard, I hadn't thought much about this, as I simply would download and install the Python 2.6.2 Mac Installer Disk Image, which is a framework build, and go about my business using virtualenv, pip, etc. However, with the changes in Snow Leopard to 64-bit, gcc, etc., I've noticed some issues that have made me want to build/compile Python 2.6.2+ myself from source, which leads me to my question of the differences and advantages/disadvantages of building Python as a MacOSX|Darwin framework.
您已经列出了制作框架的所有重要优势(恭喜您进行了出色的研究和报告!);唯一的缺点是很难安排正确构建一个,但是如果您从引用的安装程序中的示例中获取线索,它应该是可行的.
You've already listed all important advantages of making a framework (congratulations for excellent research and reporting thereof!); the only flip side is that it's harder to arrange to build one properly, but if you take your clues from the examples in the installer you quote, it should be doable.
BTW,Snow Leopard 自带的系统 Python 出了什么问题?我还没有从 Leopard 升级(长话短说……我确实有家庭许可证"升级 DVD,但需要 Snow Leopard 修复一些东西才能升级),所以我还没有第一手经验,但我知道它是 2.6 版本,并且有 32 位和 64 位版本……那么为什么需要构建自己的框架?
BTW, what's wrong with the system Python that comes with Snow Leopard? I haven't upgraded from Leopard yet (long story... I do have the "family license" upgrade DVD, but need Snow Leopard to fix some things before I can upgrade), so I have no first-hand experience with that yet, but I do know it's a 2.6 build and it comes in both 32-bit and 64-bit versions... so why do you need to build your own framework?
这篇关于Mac OS X 上 Python 的框架和非框架构建之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!