Though in this case OP is in a venv, so that's fine, it's only at the system level where it's a bad idea. Having said that, I do use pip outside of venvs a little bit, it can be done somewhat safely, but you have to know what you're doing, such as installing everything to /usr/local so it doesn't collide with pacman-managed files and can be just deleted if you run into any issues: $ cat /usr/lib/python3.8/site-packages/sitecustomize.py import site from sys import version_info as v # Add /usr/local/lib/pythonx.y/site-packages as a site dir: site.addsitedir('/usr/local/lib/python{}.{}/site-packages'.format(v.major, v.minor)) $ sudo cat /root/.config/pip/pip.conf [install] install-option=--prefix=/usr/local Main remaining issue is that unmet dependencies pulled in by pip might be unnecessary if they are available in the Arch repos or AUR - though since /usr/local/lib/pythonx.y/site-packages is added at the end of sys.path, those packages won't shadow /usr/lib/pythonx.y/site-packages - they will just be redundant and at worst break the pip-installed packages who expected a different version and get the pacman-managed one instead. -Chris On Thu, Nov 28, 2019 at 1:50 PM Dmitry Yershov via arch-general < arch-general@archlinux.org> wrote:
For those who don't know, command $ sudo pip install <pypi_package_name> opens DOOM's gate. [
https://open.spotify.com/track/2UKgx2oba7CltHLACr3xdT?si=1XKkDJXZTDK2N-M-W-8... ]
It's not a good idea to do that if you don't want to destroy your package integrity.
On Thu, Nov 28, 2019 at 1:32 PM Iyán Méndez Veiga <me@iyanmv.com> wrote:
El jueves, 28 de noviembre de 2019 17:26:28 (CET) usted escribió:
In such cases I just use pip to install package at system level (without venv). If something gets packaged later I just do pip uninstall and install arch package instead.
Regards, Łukasz
If you do that, pip will overwrite /usr/bin/cmake, right? Besides, I don't want just to install it in my system, but write a PKGBUILD and probably share it in AUR.
Thanks, Iyán