I installed Django 1.3 some time ago. Time to upgrade!
I can’t find any saved console logs.
There’s no reference to the Django .egg in the file named easy-install.pth
I see Django-1.3.1.tar.gz
So most likely I installed via “python setup.py install”.
So theoretically all I should have to do is delete this directory. Let’s see if this works in practice.
Deleting directory.
Running “pip install Django”
pip: command not found
But I know I have it under /venv. Well, I don’t really know much about using venv and it isn’t working from there so let’s delete that and install it via the recommended way: get-pip.py
sudo python get-pip.py
Installing pip script to /usr/local/bin
Installing pip-2.7 script to /usr/local/bin
Successfully installed pip
pip install Django
Requirement already satisfied (use —upgrade to upgrade): Django in /Library/Python/2.7/site-packages
Well, pip found my old Django anyway.sudo pip install Django —upgrade
Downloading Django-1.4.tar.gz (7.6Mb): 7.6Mb downloaded
Running setup.py egg_info for package Django
Installing collected packages: Django
Found existing installation: Django 1.3.1
Uninstalling Django:
Successfully uninstalled Django
Running setup.py install for Django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
changing mode of /usr/local/bin/django-admin.py to 755
Successfully installed Django
$ python
»> import django
»> print(django.get_version())1.4
Yay!