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 ?
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.
'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.
Simply type python -m django --version or type pip freeze to see all the versions of installed modules including Django.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With