Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling old version Django for upgrade to latest version

Tags:

django

ubuntu

I want to upgrade Django from 1.2.5 to 1.3. I uninstalled 1.2.5 version, by the Ubuntu Software Center, for future upgrading, but it still in dist-packages and it still imported in python shell. What should I do? Would it be normal if I would brutally deleted the folder and egg from dist-packages? It runs on Ubuntu 10.04

like image 1000
I159 Avatar asked May 20 '11 12:05

I159


1 Answers

I recommend using setup-tools. Then run

easy_install --upgrade django

It will remove current django path from PYTHON_PATH and will add it's own path. To get easy_install do:

apt-get install python-setuptools

For both actions sudo is needed.

like image 119
nagisa Avatar answered Oct 17 '22 08:10

nagisa