Custom Search

Saturday, March 17, 2018

Python 3 How to Install and Uninstall Python Packages using PIP

Python 3 How to Install and Uninstall Python Packages using PIP
1)
python 3.6
sudo python3 -m pip install Django
sudo python3 -m pip show Django
sudo python3 -m pip uninstall Django

2)
python 2.7
sudo python -m pip install Django
sudo python -m pip show Django
sudo python -m pip uninstall Django

1)
sudo python -m pip install Django

$ sudo python -m pip show django
Name: Django
Version: 1.11.11
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Home-page: https://www.djangoproject.com/
Author: Django Software Foundation
Author-email: foundation@djangoproject.com
License: BSD
Location: /usr/local/lib/python2.7/dist-packages
Requires: pytz

2)
sudo python3 -m pip install Django

$ sudo python3 -m pip show django
Name: Django
Version: 2.0.3
Summary: A high-level Python Web framework that encourages rapid development and clean, pragmatic design.
Home-page: https://www.djangoproject.com/
Author: Django Software Foundation
Author-email: foundation@djangoproject.com
License: BSD
Location: /usr/local/lib/python3.6/dist-packages
Requires: pytz

1 comment:

  1. I like your blog, I read this blog please update more content on python, further check it once at python online training

    ReplyDelete