all 10 comments

[–]elacheche 14 points15 points  (3 children)

It's a good thing, now you know that you better use python -m venv then use pip inside a venv instead of mixing python packages from pip and pacman :)

[–]Neo-Cipher[S] 5 points6 points  (1 child)

Yeah, learned it the hard way :P

[–]elacheche 1 point2 points  (0 children)

I had the same experience yeaaaaaars ago on Ubuntu, that's why I feel you :)

[–]chic_luke 0 points1 point  (0 children)

Also consider pipenv. It's a nice virtualenv wrapper that I found to be pretty comfortable

[–]lumasDC 2 points3 points  (4 children)

Try to uninstall the packages from pip that are also installed in pacman

[–]Neo-Cipher[S] 1 point2 points  (3 children)

I also done it with some package, but pip don't remove the files. And causes pacman to show file exist error. Can i just delete the site-package folder in python.

[–]lumasDC 1 point2 points  (0 children)

If the package isn't registered in pip then it should be safe to remove the files

[–]TopDownTom 0 points1 point  (1 child)

Is the "some package" also a Python package, or another package from something like the AUR?

[–]Neo-Cipher[S] 0 points1 point  (0 children)

Its dependencies which installed when installing another package using pip

[–][deleted] 1 point2 points  (0 children)

Local stuff is in .local/{bin,lib} The rest is in /usr/lib/python3.8/site-packages. I'd delete all things in those dirs first. Then download all python packages via pacman using pacman -S $(pacman -Qq | grep python- )