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.
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.
1 Answer. According to the official Python documentation reports, Python 3.9.
The most likely answer is 64-bit, for the following reasons: Most modern operating systems use a 64-bit edition of Python by default. Windows users can run 32-bit editions of Python on 64-bit Windows, but at a slight cost of performance. 32-bit Python, and 32-bit apps generally, can access only 4GB of memory at a time.
The biggest difference between 32-bit and 64-bit Windows 7, and one of the reasons why 64-bit operating systems even exist, is the increased amount of memory that can be addressed. 32-bit Windows 7 can only utilize a maximum of 4GB of memory. In contrast, 64-bit Windows 7 can manage up to 192GB of memory.
For Python 2.7. 7 only, we are providing three OS X binary installers: the unchanged 10.6+ 64-bit/32-bit format, the deprecated 10.3+ 32-bit-only format, and the newer 10.5+ 32-bit-only format. See the README included with the installer downloads for more information.
if you need more than 4gb of RAM to work with: return 64 else: return 32
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.)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With