How should python packages be installed, after all?

When I run pip install <package>, packages install with a warning about not being in path.
I can also see some pacman packages like python-numpy that can be installed through pacman as well.
And there’s the sudo pip way… is this a thing? It seems so… wrong…

What’s the elegant solution?

Because it is. Dont do that.

Regular 'pip install. is fine. You can define where it goes, and/or define the path as well.

The most preferred way is to use virtual environments.
And always remember not to mix up repo packages and python/pip/dev packages.

https://wiki.archlinux.org/index.php/Python#Package_management

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.