need to upgrade django1.4.5-->django1.5, but apt-get install django tells me i'm running latest version

24 views
Skip to first unread message

arthur sherman

unread,
Jun 1, 2015, 5:17:26 PM6/1/15
to django...@googlegroups.com
i get the following errors in the apache2 error.log:

VersionConflict: (Django 1.4.5 (/usr/lib/python2.7/dist-packages), Requirement.parse('Django>=1.5'))

but when i attempt upgradinging django apt-get install reports that i'm at the latest version:
 apt-get install python-django
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-django is already the newest version.
The following package was automatically installed and is no longer required:
  libmysqlclient16
Use 'apt-get autoremove' to remove it.

any suggestions?

Andreas Kuhne

unread,
Jun 1, 2015, 5:54:06 PM6/1/15
to django...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7fd56253-482e-4cdb-8a26-c98d9d03805c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Arthur,

You should checkout how to run virtual environments for installing python packages.


You can then install any version of any python package you want.

Regards,

Andréas

Mike Dewhirst

unread,
Jun 1, 2015, 10:14:57 PM6/1/15
to django...@googlegroups.com
Uninstall using sudo apt-get remove django

You probably want to stop your web server for the duration of the
process. Sometimes having it running will prevent upgrades.

Re-install using pip rather than apt-get ...

pip install django==1.4.5
pip install <any other Django-related packages>

Prove everything still works (temporarily start the web server)

pip install --upgrade django==1.5.x

Re-start your web server

If you use apt-get you are stuck with the version of Django which the
package maintainers originally settled on for your distro. Using pip you
can manage it all yourself.

Andreas' advice to use virtualenv is excellent and you should follow it.

Good luck

>
> any suggestions?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto:django...@googlegroups.com>.
> <https://groups.google.com/d/msgid/django-users/7fd56253-482e-4cdb-8a26-c98d9d03805c%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages