PS C:\Users\************> C:\Python27\python.exe Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import platform >>> platform.architecture() ('64bit', 'WindowsPE')
注意“on win32”部分(在win32上的[msc v.1500 64位(amd64)]中)。
“This PC”->属性还显示Windows为64位。 同样,当我尝试安装不同的python3版本时。
为什么button检测32位操作系统不正确?这将阻止仅在64位上工作的模块工作。
UPD:阅读 https://groups.google.com/forum/#!topic/glazier-discuss/Gyrm2IsNhDA -Windows PE可能会导致问题。
win32 不一定意味着你的窗户是 32bit 系统,这意味着您使用的是Windows操作系统,它只是出于历史原因留在那里。以及您的 This PC 足以确认它是64位窗口。没有 win64 顺便说一句。
win32
32bit
This PC
win64
你要找的是这个, [MSC v.1500 64 bit (AMD64)] -这意味着它是用64位的MSVC编译器构建的
[MSC v.1500 64 bit (AMD64)]
为了更可靠地检查解释器是以32位还是64位运行,请尝试以下操作:
import sys print(sys.maxsize > 2**32) # must return TRUE for 64bit