Python packages are installed for a specific minor version of python.
If you upgrade your minor version of python, then you will need to
reinstall all the python packages you use for that specific minor
version of python.
By 'minor version', I mean this: Python 2.7.1 has major version 2,
minor version 7 and minor minor version 1. You need to reinstall
whenever you change major or minor version.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
+1
For my projects I use virtualenv and pip, with all the required
packages specified in a requirements.pip file.
When I want to redeploy, it is simply a case of:
rm -rf environ
virtualenv --no-site-packages environ
source environ/bin/activate
pip install -r requirements.pip
requirements.pip is simple and looks like this:
django>=1.3,<1.4
south
MySQL-python
django-timezones
(etc)
Makes everything consistently reproducible. No packages get installed
in my system python folders, and my django app is insulated from any
packages added to the system python folders.
Cheers
Tom
http://www.pip-installer.org/en/latest/index.html
http://code.google.com/p/modwsgi/wiki/VirtualEnvironments
the same commands work inside a virtualenv. with the advantage of
being independent of what Apple does with the rest of the system.
--
Javier
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/uzKtIhXl5qMJ.
creecode, I tried the commands you suggested first. No matter which
version I switched to, it still said No module named django, which
seems weird but there it is.
So I ran sudo easy_install django, just
to see if it could be that easy. When the install was done, it seemed
to work at first. I could run import django, no problem. I started the
tutorial on djangoproject.com and got as far as setting up a db and
running python manage.py runserver, before the dreaded
"django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: No module named MySQLdb" started showing up. God damn it.
At this point I thinking maybe I should just switch to using
PostgreSQL instead, if that would solve the problem. What do you guys
think?