Category Archives: python

pycrypto Windows binaries

Another entry in my gripping series of posts intended to remind me about various software and development things when I inevitably forget them, this time to do with pycrypto. Installing pycrypto via a regular pip install is a pain for me on Windows, as it requires some C compiling, and I don’t always have a C compiler installed or configured for pip to see. Some googling has yielded a repository of pre-built Windows links, so this is where you found them, future-me:

http://www.voidspace.org.uk/python/modules.shtml#pycrypto

Leave a Comment

Filed under code, computing, python

Deploying MySQL for Django on an Ubuntu OS

I’ve had occasion to deploy Django on fresh Ubuntu systems a few times recently, for some side projects. To save me Googling these answers again the next time I do so, here are the steps for getting MySQL properly installed so Django deploys happily via pip:

sudo aptitude install mysql-server libmysqlclient-dev python-dev

			

Leave a Comment

Filed under computing, python

Installing MySQL-python on a Windows virtualenv

This one is more for my own reference when I inevitably forget how to do this: I needed to install the mysql-python connector into a virtualenv on my Windows system but could not get it to do a pip or easy_install install for a variety of errors: a missing header file and a missing compiler batch file amongst others. I solved it by using a pre-compiled package from this excellent list of pre-compiled Python Windows packages¬†and then instructing easy_install to install it (which I didn’t realise was possible):

easy_install MySQL-python-1.2.4.win-amd64-py2.6.exe

Voila.

Leave a Comment

Filed under code, python