Sunday, February 6, 2011

Python: Matplotlib for 64bit

If you have 64bit python installed...I used the Enthought package to do it...Matplotlib probably won't actually work because it's not available for 64bit in general. So when you try to plot something you get a huge error output. If you look closely, the only real error is that it can't find a font in the "show()" command because it's looking in the (x86) directory. The brute force fix - find the correct subdirectory in the 64 bit install directory and copy it into the equivalent 32 bit install directory. In short:
C:\Program Files\Python26\Lib\site-packages\matplotlib
C:\Program Files (x86)\Python26\Lib\site-packages\matplotlib

duh as in done!

I have a feeling all that needs to be done is add/change the path so it can find the right folders anyway. If anyone reads this and can confirm, please comment. Thanks!

No comments: