Unnecesary pip packages

I installed pip, and used it for several python projects, each one with its own environment. However, I guess I did set up one of them uncorrectly, as when I do pip list on bash (no environment activated) I get this entire list of installed packages on the following path:

/usr/bin/pip

Package Version


apturl 0.5.2
bcrypt 3.2.0
beautifulsoup4 4.10.0
blinker 1.4
Brlapi 0.8.3
certifi 2020.6.20
chardet 4.0.0
click 8.0.3
colorama 0.4.4
command-not-found 0.3
configobj 5.0.6
cryptography 3.4.8
cupshelpers 1.0
dbus-python 1.2.18
defer 1.0.6
distro 1.7.0
distro-info 1.1+ubuntu0.2
duplicity 0.8.21
fasteners 0.14.1
folder-color 0.2.0
future 0.18.2
html5lib 1.1
httplib2 0.20.2
icoextract 0.1.2
idna 3.3
importlib-metadata 4.6.4
jeepney 0.7.1
keyring 23.5.0
language-selector 0.1
launchpadlib 1.10.16
lazr.restfulclient 0.14.4
lazr.uri 1.0.6
lockfile 0.12.2
louis 3.20.0
lxml 4.8.0
macaroonbakery 1.3.1
Mako 1.1.3
MarkupSafe 2.0.1
monotonic 1.6
more-itertools 8.10.0
netifaces 0.11.0
oauthlib 3.2.0
olefile 0.46
paramiko 2.9.3
pefile 2021.9.3
pexpect 4.8.0
Pillow 9.0.1
pip 22.0.2
protobuf 3.12.4
psutil 5.9.0
ptyprocess 0.7.0
pycairo 1.20.1
pycups 2.0.1
pyelftools 0.27
PyGObject 3.42.1
PyJWT 2.3.0
pymacaroons 0.13.0
PyNaCl 1.5.0
pyparsing 2.4.7
pyRFC3339 1.1
python-apt 2.4.0-ubuntu4-zorin1
python-dateutil 2.8.1
python-debian 0.1.43+ubuntu1.1
pytz 2022.1
pyxdg 0.27
PyYAML 5.4.1
reportlab 3.6.8
requests 2.25.1
screen-resolution-extra 0.0.0
SecretStorage 3.3.1
setuptools 59.6.0
six 1.16.0
soupsieve 2.3.1
ubuntu-drivers-common 0.0.0
ufw 0.36.1
unattended-upgrades 0.1
urllib3 1.26.5
variety 0.8.5
wadllib 1.3.6
webencodings 0.5.1
wheel 0.37.1
xdg 5
xkit 0.0.0
zipp 1.0.0
zorin-appearance 5.3
zorin-connect 1.2
zorin-exec-guard 1.5

I am no expert on python, but in other distributions I remember pip being installed with very few packages, as wheels and setuptools (if I remember right).

Are all these packages usual in a clean installation of pip when I am not working in a particular environment? Can some of them be removed?

Yes, those are normal. They come from the package python3-pip which is not installed by default. On a fresh install of Zorin OS (after installing said package) I count 81 of them with pip list | wc -l.

You can probably uninstall a few without noticing any difference, depending on what you're trying to do, but I'd leave that alone just in case. Total installed size is about ~7Mb anyway, so not a big deal.

Weirdly after a fresh reinstall of pip I got 89. Anyway, I feel better knowing those are completely normal