Python: Unable to Render Tex in Matplotlib

On an Ubunutu 14.04 machine the combination of answers from above worked. I sudo apt-get install the dvipng,texlive-latex-extra, and texlive-fonts-recommended packages and that did the trick: $ sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended Edit: As of Matplotlib 3.2.1, you now also need the package cm-super (see https://github.com/matplotlib/matplotlib/issues/16911) $ sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super

Rails, MySQL and Snow Leopard

I just went through the same pain… here’s what worked for me: Download / install the 64-bit MySQL 5.1.37 from mysql.com run the following commands: sudo gem update –system sudo env ARCHFLAGS=”-arch x86_64″ gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config I also uninstalled all mysql gems that were floating around from my 10.5 days, that may do … Read more

How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

You can find out a lot about the Python version you’re running via the platform module (the sys module also has a few simple helpers) On Mac OS X, you can run a “fat binary” with your chosen architecture with, for example, arch -i386 /usr/bin/python I do not recommend altering /usr/lib/python itself (with the lipo … Read more