#[CLOSED] Removing modules installed with pip
1 messages · Page 1 of 1 (latest)
If you did not change the default global user installation path for pip, then there are no user-installed python packages on your system, so there is nothing to remove.
so i installed some package by pip
Very bad practice, never run pip, npm etc as root.
Find stray files first.
Then find what you installed by piping from shell history
Finally, run a pacman checksum and reinstall these modified python packages from repo.
sorry i don't know the checksum you are talking about
pacman -Qkk
sudo?
However, you may find paccheck from pacutils more convenient.
This command lists all packages with a mismatching checksum.
sudo paccheck --sha256sum --list-broken
ohh i see what you are doing, so to check if the package is installed from pacman because other applications like pip would have a different checksum?
The lostfiles package from repo can be used to find lost files. It should also be run as root.
Yes, then you can overwrite them with pacman.
If the package you installed with pip has changed the system python package, paccheck can find this out, and these newly added files can be picked up by lostfiles.
minutes
vlc 🗿
but in this case i only want to remove pycairo do i do which pycairo and delete the path
well, what's the output from
lostfiles
vlc
and im going to ignore that
fortunately you haven't installed a Python package that conflicts with what Pacman manages.
yes
lllol
sudo pip, never do that again
so sudo pip uninstall pycairo?
You can delete these files manually.
i think there should be something in here?
Would you kindly run
lostfiles
and post the output?
ohh sorry i thought it was just part of the paccheck command
Doesn't seem right,the output should include something like this part
/usr/lib/python3.11/site-packages/cairo
/usr/lib/python3.11/site-packages/cairo/__init__.py
/usr/lib/python3.11/site-packages/cairo/__init__.pyi
/usr/lib/python3.11/site-packages/cairo/__pycache__
/usr/lib/python3.11/site-packages/cairo/__pycache__/__init__.cpython-311.pyc
/usr/lib/python3.11/site-packages/cairo/_cairo.cpython-311-x86_64-linux-gnu.so
/usr/lib/python3.11/site-packages/cairo/include
/usr/lib/python3.11/site-packages/cairo/include/py3cairo.h
/usr/lib/python3.11/site-packages/cairo/py.typed
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/COPYING
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/COPYING-LGPL-2.1
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/COPYING-MPL-1.1
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/INSTALLER
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/METADATA
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/RECORD
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/REQUESTED
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/WHEEL
/usr/lib/python3.11/site-packages/pycairo-1.24.0.dist-info/top_level.txt
I just did sudo pip install pycario in a VM to see what would happen.
For your information, pycario is included by pacman in the python-cario package.
pacman -Q python-cario
stat /usr/lib/python3.11/site-packages/cairo
did i f up my system? :(
Sorry it's
pacman -Q python-cairo
What is the output?
stat /usr/lib/python3.11/site-packages/pycairo*.dist-info
Then nothing needs attention, your system is fine.
And **DO NOT **run sudo pip uninstall pycario as you already have the pycario from pacman.
care to elaborate?
i just run it faceslap
i don't know if i remember it wrong but the output should be something like
package_name [installed]
description
No, I only used the -Q flag.
ah okay must have been another command thank you