【发布时间】:2013-08-24 02:13:36
【问题描述】:
下载 python 2.7.5 here 时,我下载了带有链接“Python 2.7.5 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and稍后 [2])"。 安装了python,我cd目录“/Library/Frameworks/Python.framework/Versions/2.7”并执行以下python代码:
import sys
print sys.maxint
我得到 2147483647 这意味着我正在运行 32 位版本的 python。如何安装64位版本的python?
【问题讨论】:
-
您运行的是什么版本的 Mac OS X?你的 CPU 是多少?
-
这可能会给你一些线索stackoverflow.com/questions/3411079/…
-
@Paul OS: Darwin localhost 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013;根:xnu-2050.22.13~1/RELEASE_X86_64 x86_64
-
好吧,我在 12.4.0 上使用的是默认的内置 python (2.7.2),我得到了 64 位的 maxint。
-
启动横幅的内容是什么?