I\'ve just upgraded from Python 2.6.1 to 2.6.4 on my development machine and upon starting a python script was presented with the following message:
C
A simple fix would be to create the directory and provide www-data access to it.
www-data
$ mkdir /var/www/.python-eggs $ chown www-data:www-data /var/www/.python-eggs