Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstall Django completely

I uninstalled django on my machine using pip uninstall Django. It says successfully uninstalled whereas when I see django version in python shell, it still gives the older version I installed.

To remove it from python path, I deleted the django folder under /usr/local/lib/python-2.7/dist-packages/.

However sudo pip search Django | more /^Django command still shows Django installed version. How do i completely remove it ?

like image 241
S-T Avatar asked Jan 03 '14 06:01

S-T


People also ask

How do I know if Django is installed?

In the command prompt, execute the following command: pip install django . This will download and install Django. After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.

How do I fix Django-admin not recognized?

'django-admin' is not recognized as an internal or external command, operable program or batch file. To fix this, first close the terminal window and relaunch it with administrator privileges. Once you launch the elevated terminal window change directory to where you wish to start your Django project.

How do I find Django version on Mac?

Simply type python -m django --version or type pip freeze to see all the versions of installed modules including Django.


1 Answers

pip search command does not show installed packages, but search packages in pypi.

Use pip freeze command and grep to see installed packages:

pip freeze | grep Django
like image 53
falsetru Avatar answered Sep 20 '22 04:09

falsetru