Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've upgraded Python from 2.5 to 2.7, but the upgrade broke Django. My Django tests and shell report they can't find the modules.

I tried putting the site-packages with Django on my PYTHONPATH in .bashrc, but this failed to to find MySQLdb.

Do I have to reinstall Django?

share|improve this question
up vote 1 down vote accepted

Yes. And MySQLdb.

python2.7 install

(well, not Django, but why take a chance when it's so easy to do?)

share|improve this answer
Well, I'm trying to install MySQLdb, but the setup wants setuptools, whose setup wants zlib, and apparently my installation of Python didn't create the zlib module properly. – chernevik Feb 20 '11 at 22:24
Fixed zlib by installing zlib1g-dev, then reinstalling python. That gave me setuptools. MySQLdb installation then wanted mysql_conf, which I got by installing libmysqlclient15-dev. Then I could install MySQLdb, and Django worked. God bless the various packagers -- seriously, they make incredible things possible -- but this installation was more google-fu than I've needed in a long time. – chernevik Feb 20 '11 at 23:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .