Pkg_resources.DistributionNotFound: Django==1.3.1 While Creating A New Project In Django
Solution 1:
It seems you have both Django 1.3.0 and 1.3.1 installed and you're using the django-admin.py
from 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.py
corresponding 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.py
script 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.
Solution 2:
Try deleting easy_install.pth file if you try to install using easy_install too.
I have this issue as pip didn't worked i tried with easy_install and it installed the latest django, so have to delete it that file from dist-packages folder. Hope this helps some one referring.
Post a Comment for "Pkg_resources.DistributionNotFound: Django==1.3.1 While Creating A New Project In Django"