Custom Search

Saturday, March 17, 2018

How to Detect and Remove Python Packages Installed via Pip and Apt

How do I Detect and Remove Python Packages Installed via Pip and Apt Package Manager
1)
a)
install
$ sudo apt install python3-pil

b)
$ pip3 show Pillow
OR
$ sudo python3 -m pip show Pillow
Name: Pillow
Version: 5.0.0
Summary: Python Imaging Library (Fork)
Home-page: https://python-pillow.org
Author: Alex Clark (Fork Author)
Author-email: aclark@aclark.net
License: Standard PIL License
Location: /usr/lib/python3/dist-packages
Requires:

c)
Uninstall
$sudo apt remove python3-pil

2)
a)
install
$ sudo python3 -m pip install Pillow

b)
$ pip3 show Pillow
OR
$ sudo python3 -m pip show Pillow
Name: Pillow
Version: 5.0.0
Summary: Python Imaging Library (Fork)
Home-page: https://python-pillow.org
Author: Alex Clark (Fork Author)
Author-email: aclark@aclark.net
License: Standard PIL License
Location: /usr/local/lib/python3.6/dist-packages
Requires:

c)
Uninstall
sudo python3 -m pip uninstall Pillow



No comments:

Post a Comment