Best practice for install python packages [pacman vs pip]

I’ve notice that…there are two different way to install a same python package :thinking:

example:

  1. pacman -S python-django
  2. pip install django

image

why there is two option & which method should use for install packages?

Because Python made their own package manager for Python packages.


When installing packages using pip, it is recommended to use a virtual environment to prevent conflicts with system packages in /usr. Alternatively, pip install --user can be used to install packages into the user scheme instead of /usr.

https://wiki.archlinux.org/title/Python#Package_management

2 Likes

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