Is Your Python 64-bit?

Wouldn’t you like to know? I’d like to know because I’m trying to track down why I can’t get `matplotlib` to install. So I tried this:

>>> import sys
>>> is_64bits = sys.maxsize > 2**32
>>> print is_64bits
True

And back in the shell prompt:

% file -L $(python -c ‘import sys; print(sys.executable)’)
/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/
Resources/Python.app/Contents/MacOS/Python: Mach-O 64-bit executable x86_64

So I’m 64-bit with my [homebrew installation][].

[homebrew installation]: http://johnlaudun.org/20120131-nltk-on-mac-os-x/

(Visited 46 times, 1 visits today)