Home > Backend Development > Python Tutorial > What is the difference between python32-bit and 64-bit

What is the difference between python32-bit and 64-bit

爱喝马黛茶的安东尼
Release: 2019-06-20 13:45:13
Original
9960 people have browsed it

What is the difference between python32-bit and 64-bit? 64-bit can use larger memory space. 64-bit can run on 64-bit systems, but cannot run on 32-bit systems.

32-bit can run on 32-bit and 64-bit. Considering compatibility, it is recommended to use 32-bit python.

What is the difference between python32-bit and 64-bit

How to check whether python is 32-bit or 64-bit

You can use IDLE or CMD to check.

Method 1:

Open IDLE and look at the first line of prompts, for example:

32-bit system is like this Python 3.5.1 (v3 .5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32, 64-bit system is like this Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32

Method 2:
Open the command prompt CMD, enter python, the above will also be displayed Order.
Under 32-bit system
Under 64-bit system

Related recommendations: "Python video tutorial"

Method three:

Computer->Advanced System Settings->Environment Variables

If there is no Path in the environment variable, create a new one and add the python installation path to it. If you cannot change the system environment variable, you can create a new environment variable called Path under the user, and then add the python path, so that the Path is only valid for the current user.

IDLE is written in python. Of course it cannot be opened if the python environment variable is not installed, because there is no python command when you type python xxx.py in cmd.

Method 4:

Usually there are 2 program files folders (the default directory used to install applications) in Windows 64, one is The other program files are program files (x86), and 32bit only has one folder called program files.

Based on the above characteristics, we can determine whether the windows system is 32-bit or 64-bit.

import os

prg = C:Program Files(x86)

if True == os.path.exists( prg ):

print 64bit

else:

print 32bit

The above is the detailed content of What is the difference between python32-bit and 64-bit. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template