Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use Python 2.7 32 bit or 64 bit with Windows 7

Tags:

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.

like image 252
Kevin Avatar asked Feb 17 '11 18:02

Kevin


People also ask

Which Python version is best for Windows 7?

1 Answer. According to the official Python documentation reports, Python 3.9.

Should I install Python 32-bit or 64-bit?

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.

Which is better 32-bit or 64-bit Windows 7?

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.

Which Python version is for Windows 7 32-bit?

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.


2 Answers

if you need more than 4gb of RAM to work with:     return 64 else:     return 32 
like image 112
Matt Ball Avatar answered Oct 21 '22 18:10

Matt Ball


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.

like image 20
ide Avatar answered Oct 21 '22 18:10

ide