I’m a bit miffed by the python package installation process. Specifically, what’s the difference between packages installed in the dist-packages directory and the site-packages directory?
I’m a bit miffed by the python package installation process. Specifically, what’s the difference
Share
dist-packagesis a Debian-specific convention that is also present in its derivatives, like Ubuntu. Modules are installed todist-packageswhen they come from the Debian package manager into this location:Since
easy_installandpipare installed from the package manager, they also usedist-packages, but they put packages here:From the Debian Python Wiki:
This means that if you manually compile and install Python interpreter from source, it uses the
site-packagesdirectory. This allows you to keep the two installations separate, especially since Debian and Ubuntu rely on the system version of Python for many system utilities.