问题描述
我正在设置Django,并尝试决定是否在Windows 7机器上使用32位或64位版本的Python 2.7。
I am setting up Django, and am trying to decide whether to use the 32 bit or 64 bit version of Python 2.7 on my Windows 7 machine.
已经看到64位安装程序的问题,但真正的问题是所有必需的库是否可用于64位,或者一个版本是否有其他任何我应该注意的问题。
I've seen the issues with the 64 bit installer, but the real question is whether or not all of the necessary libraries are available for 64 bit, or whether one version has any other issues that I should be aware of.
推荐答案
我推荐32位,除非你要耗尽地址空间。许多第三方模块,如OpenCV和Numpy,使用32位Python可以轻松安装。 (您可以从源代码构建这些模块,使其能够使用64位Python,但在大多数情况下可能需要更多的时间和精力,有时候会有非正式的64位版本,但是模块作者不支持这些模块。 )
I recommend the 32-bit one unless you are going to exhaust the address space. Many third-party modules like OpenCV and Numpy are considerably easier to install with 32-bit Python. (You can build those modules from source to get them to work with 64-bit Python but that's probably more time and effort than necessary in most cases. Sometimes there are unofficial 64-bit builds but they aren't supported by the module authors.)
虽然您可能不需要Django的这些模块,如果这是您的个人计算机,您可能会安装它们用于不同的项目,并且不想交易在同一台机器上安装两个Python,我会选择32位。
While you probably don't need those modules for Django, if this is your personal computer and you might install them for a different project and don't want to deal with two Python installations on the same machine, I would choose 32-bit.
这篇关于我应该在Windows 7中使用Python 2.7 32位或64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!