gpt4 book ai didi

python - 我有 Numpy 32 位还是 64 位?

转载 作者:IT王子 更新时间:2023-10-28 23:33:03 32 4
gpt4 key购买 nike

如何检查我安装的 numpy 版本是 32 位还是 64 位?

在脚本中运行且独立于系统的解决方案的奖励积分。

最佳答案

In [65]: import numpy.distutils.system_info as sysinfo

In [69]: sysinfo.platform_bits
Out[69]: 64

这是基于 the value returned by platform.architecture() :

In [71]: import platform
In [72]: platform.architecture()
Out[74]: ('64bit', 'ELF')

关于python - 我有 Numpy 32 位还是 64 位?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33553549/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com