两个 Python 2.7 Mac OS X 磁盘映像安装程序有什么区别?

发布于 2024-09-13 23:49:15 字数 528 浏览 3 评论 0原文

Python 2.7 有两个不同的 Mac OS X 磁盘映像安装程序。我的问题是:

  1. 这两个 Python 2.7 磁盘映像安装程序有什么区别?
    1. 适用于 Mac OS X 10.3 至 10.6 的 Python 2.7 32 位 Mac OS X 安装程序磁盘映像
    2. 适用于 Mac OS X 10.5 或更高版本的 Python 2.7 PPC/i386/x86-64 Mac OS X 安装程序磁盘映像
  2. 如果运行 Mac OS X 10.6 Snow Leopard,没有 64 位内核和扩展,安装哪个版本的 Python 2.7 更合适?
  3. 为什么 Python 2.7 有两个不同的 Mac OS X 磁盘映像安装程序,而 Python 2.6.5 和 Python 3.2 各只有一个?
  4. 第一个列出的安装程序是否支持 PPC?奇怪的是,如果它不支持 Mac OS X 10.3,但与第二个安装程序不同的是,PPC 没有列出。

Python 2.7 has two different disk image installers for Mac OS X. My questions are:

  1. What are the differences between the two Python 2.7 disk image installers?
    1. Python 2.7 32-bit Mac OS X Installer Disk Image for Mac OS X 10.3 through 10.6
    2. Python 2.7 PPC/i386/x86-64 Mac OS X Installer Disk Image for Mac OS X 10.5 or later
  2. If running Mac OS X 10.6 Snow Leopard without the 64-bit kernel and extensions, which is the more appropriate version of Python 2.7 to install?
  3. Why are there two different Mac OS X disk image installers for Python 2.7 when Python 2.6.5 and Python 3.2 each only have one?
  4. Does the first listed installer support PPC? Strange that it wouldn't if it support back to Mac OS X 10.3, but unlike the second installer PPC isn't listed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

智商已欠费 2024-09-20 23:49:15

正如其他人指出的那样,第二个(64 位)安装程序变体是 python.org 上的新版本,从 2.7 开始,2.7 和 3.2 的未来版本将同时具有仅 32 位和 32-/64 位变体。较新的变体试图从 python.org 添加对 Intel 64 位 (x86_64) 进程的开箱即用支持,这是 OS X 10.6 中新应用程序的默认设置。

然而,python.org 安装程序更进一步,尝试在 OS X 10.5 上支持 x86_64,这导致了一些严重的问题。特别是,该安装程序与 Tk 8.4 链接,Apple 并未在 10.5 或 10.6 上提供本机 64 位版本。这意味着 IDLE 和任何其他使用 Tkinter 的 Python 程序在默认 64 位模式下的 10.6 上都会失败(并且由于各种原因,在 10.6 上以 32 位模式运行 IDLE 并不简单)。当然,如果强制使用 64 位模式,它们将在 10.5 上失败。 Apple 确实提供了 64 位版本的 Tk 8.5,但仅适用于 OS X 10.6。由于这个和其他原因,当前的计划是在未来版本中将 32 位/64 位变体更改为仅支持 10.6 或更高版本,并且仅包含 32 位 (i386) 和 64 位 (x86_64) 支持,无 PPC 。

因此,如果您预计在 10.6 上需要 IDLE 或 Tkinter,那么您应该考虑暂时坚持使用传统的仅 32 位 2.7 安装程序,直到更新的仅 10.6 安装程序可用(可能要到下一个维护版本 2.7 才会出现)。

至于问题 4,目前,两个安装程序都支持 PPC 32 位:第一个安装程序支持 10.3 到 10.6,第二个安装程序支持 10.5 和 10.5。 10.6。但第二个将来会消失。而且,虽然 OS X 10.6 不会在 PPC 机器上启动,但如果 OS X 中安装了 Rosetta 仿真包,则可以在 PPC 模式下运行 Python(以及大多数其他程序)。

As others have pointed out, the second (64-bit) installer variant is new on python.org starting with 2.7 and future releases of 2.7 and 3.2 will have both 32-bit-only and a 32-/64-bit variants. The newer variant is an attempt to add out-of-the-box support from python.org for Intel 64-bit (x86_64) processes which is the default for new applications in OS X 10.6.

However, the python.org installer goes a bit further and tries to support x86_64 on OS X 10.5 as well and that has caused some serious problems. In particular, the installer was linked with Tk 8.4 for which Apple does not supply a native 64-bit version on either 10.5 or 10.6. This means that IDLE and any other Python program that uses Tkinter fails on 10.6 in the default 64-bit mode (and for various reasons it is not straightforward to run IDLE in 32-bit mode on 10.6). And, of course, they will fail on 10.5 if 64-bit mode is forced. Apple does supply a 64-bit version of Tk 8.5 but only on OS X 10.6. For this and other reasons, the current plan is to change the 32-bit/64-bit variant in future releases to only support 10.6 or higher and only include 32-bit (i386) and 64-bit (x86_64) support, no PPC.

So if you anticipate needing IDLE or Tkinter on 10.6, you should consider sticking to the traditional 32-bit-only 2.7 installer for now until a newer 10.6-only installer is available (which might not be until the next maintenance release of 2.7).

As to question 4, at the moment, both installers support PPC 32-bit: the first on 10.3 through 10.6, the second on 10.5 & 10.6. But the second will disappear in the future. And, although OS X 10.6 will not boot on PPC machines, it is possible to run Python (and most other programs) in PPC mode if the Rosetta emulation package is installed in OS X.

惯饮孤独 2024-09-20 23:49:15

看起来所有其他版本都只有 32 位端口?所以 2.7 的一个“新特性”就是 64 位端口。如果您运行的不是 64 位操作系统并且不需要可以使用 > 的程序; 4 GB RAM,您可以坚持使用 32 位。

Looks like all the other versions only have a 32 bit port? So a "new feature" of 2.7 is a 64 bit port. If you aren't running a 64 bit OS and don't need programs that can use > 4 GB of ram, you can stick with the 32 bit.

望她远 2024-09-20 23:49:15

1) 您几乎肯定需要“Python 2.7 PPC/i386/x86-64 Mac OS X 安装程序磁盘映像”。它也是 10.6 默认附带的 2.6.x 版本的近似版本。

2) 除非您知道出于某种原因需要 32 位版本,否则 Snow Leopard 上的所有内容都默认为 64 位。它与应用程序/库/用户空间的其余部分最匹配。内核在这方面是无关紧要的。 32 位 OS X 内核可以并且仍然会运行 64 位用户区。

3) 10.6 之前不提供 64 位版本。

1) You almost certainly want "Python 2.7 PPC/i386/x86-64 Mac OS X Installer Disk Image". It's also a close analogue of the 2.6.x version that comes with 10.6 by default.

2) Unless you know you need 32-bit versions for some reason, default to 64-bit for everything on Snow Leopard. It's what will most closely match the rest of the the apps/libraries/userland. The kernel is irrelevant in this regard. The 32-bit OS X kernel can and will still run 64-bit userland.

3) 64-bit versions weren't available before 10.6.

眼泪也成诗 2024-09-20 23:49:15

Python Issue 7473 似乎阐明了为什么有两个安装程序以及差异。

Python Issue 7473 appears to shed light on why there are two installers and the differences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文