I am trying to create a new project but it getting following error .
I am using python 2.6
and django 1.3.0
File "/usr/local/bin/django-admin.py", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2659, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Django==1.3.1
It seems you have both Django 1.3.0 and 1.3.1 installed and you’re using the
django-admin.pyfrom Django 1.3.1 while having Django 1.3.0 in your default Python path.Try either of:
Using the correct version of
django-admin.pycorresponding to the Django version in your Python path (the one inside thebin/directory of your Django 1.3.0 installation).You can check where your correct
django-admin.pyscript is by executing this:echo "$(dirname $(python -c "import django; print django.__file__"))/bin/django-admin.py"Getting your Python path to correctly point to your Django 1.3.1 installation.