Linked Questions

1 vote
1 answer
139 views

This is essentially the same as asking how to detect that I am running under a 64-bit version of Windows. os.name gives 'nt' under both win7 64 and winXP 32 (my two available test computers). sys....
ExciteMike's user avatar
10 votes
6 answers
39k views

First of all, I don't think this question is a duplicate of Detect 64bit OS (windows) in Python because imho it has not been thoroughly answered. The only approaching answer is: Use sys....
Thorfin's user avatar
  • 2,022
14 votes
6 answers
18k views

I'm running python 2.6 on Linux, Mac OS, and Windows, and need to determine whether the kernel is running in 32-bit or 64-bit mode. Is there an easy way to do this? I've looked at platform.machine(),...
Matt Ball's user avatar
  • 1,482
13 votes
2 answers
21k views

Possible Duplicate: How do I determine if my python shell is executing in 32bit or 64bit mode? I made a question earlier that never got replied to, but I have something more specific now so ...
Semaj's user avatar
  • 143
8 votes
3 answers
6k views

...for current user? for all users? I'm working an a small program which needs to create links in the start menu. Currently I'm hardcoding like below, but it only works in english locales, for ...
2 votes
2 answers
981 views

Under Windows, I'm running a 32bits python.exe. I need to know if the OS/CPU is 64bits or 32bits. My machine is running a Windows7 64bits. Checked this post, and tried to run this Python script: ...
jpo38's user avatar
  • 21.9k
0 votes
1 answer
2k views

In Python3.4, I have: >>>import sys >>>print(sys.platform) win32 But the system is absolutely of win64. Here is a piece of code in tkinter__init__py: import sys if sys.platform ==...
John-Annual's user avatar
0 votes
1 answer
984 views

I've made a script (called isPA64.bat) to determine if the executing system is 64-bit (based on this Bear's Log tip): @echo off setlocal set str1=%PROCESSOR_ARCHITECTURE% set/A sixty4=0 if not x%str1:...
Rob F.'s user avatar
  • 13
0 votes
1 answer
737 views

I tried every example on SO and Google, but none of them working. I don't know why, script finishes without any error. But background image does not changing. I put absolute path for that image, I ...
GLHF's user avatar
  • 4,094
1 vote
2 answers
542 views

I'm having trouble with things breaking based on x86 vs x64 in Python 3 on Windows. I need to know if my Python program is running: On x64 vs. x86 Hardware On a x64 vs. x86 Operating System In a x64 ...
nerdfever.com's user avatar
0 votes
1 answer
246 views

1. Summary I have 64-bit Windows. But if I use platform.architecture()[0] or sublime.arch() in my Sublime Text plugin, I get 32bit value. 2. Settings I create a file ExampleSashaPlugin.py in $...
Саша Черных's user avatar
0 votes
0 answers
254 views

There are all sorts of ways to determine whether the Python executable is a 32 or 64 Bit program. But is there a way to determine if the machine supports x64? All I found results in 32 Bit for a x86 ...
Niklas R's user avatar
  • 17k
0 votes
1 answer
74 views

How would I compare an element of a tuple return from a function in an if statement? For example, I would like to do something like the following... if platform.machine() == "AMD64" : This function ...
Marmstrong's user avatar
  • 1,796