Python libraries: where to install?

Gary E. Miller gem at
Thu Nov 11 03:12:44 UTC 2021

Yo Hal!

On Thu, 04 Nov 2021 23:43:55 -0700
Hal Murray via devel <devel at> wrote:

> On debian, they get installed in
> /usr/local/lib/python3/dist-packages/ntp
> On Fedora, they go in /usr/local/lib64/python3.9/site-packages/ntp



> I'm interested in the python3.9 vs python3 (not the lib vs lib64 or
> site- vs dist-).

"python3" means you can not have multiple Python versions installed
at the same time.  Bad.

I usually have 5 or 6 different Python's installed at the same time.
Makes it easy to test.  Not possible with lib/python3.

"dist-packages" is reserved for distribution use.  So avoiud them.
"site-packages" is for user installed packages.

You think that is confusing?  Check out virtual_env, and these
PEP 370 -- Per user site-packages directory

And there are proposals to make it much more "interesting".

> Which is better, why?

Always better to go with what your distro wants.

> How does waf decide where to put things?

No idea...

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the devel mailing list