get python bit version as in (32 or 64)
philip at semanchuk.com
Tue Oct 19 23:55:56 CEST 2010
On Oct 19, 2010, at 5:38 PM, Hexamorph wrote:
> On 19.10.2010 23:18, Vincent Davis wrote:
>> How do I get the bit version of the installed python. In my case, osx
>> python2.7 binary installed. I know it runs 64 bt as I can see it in
>> activity monitor. but how do I ask python?
>> '2.7 (r27:82508, Jul 3 2010, 21:12:11) \n[GCC 4.0.1 (Apple Inc. build 5493)]'
> In : import platform
> In : platform.architecture()
> Out: ('32bit', 'ELF')
> In :
Looks a lot better than my suggestion!
More information about the Python-list