> did you use pip3 from Debian or upstream?

It is pip3 from Debian installed via python3-pip package:
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

> [¹] https://wiki.debian.org/Python#Deviations_from_upstream
>
> so… if you're using our pip3, then there's a bug (it should install into
> dist-packages ...

I'm a little surprised, that the modules installed from source with pip3
should be placed in the same folder, as the modules installed via *.deb
packages.
As I understand the wiki article, dist-packages was chosen to separate
python modules installed via Debian packages from packages, that were
installed from source.

So the same approach why /usr/ and /usr/local/ exists.

When this is the wanted behavior, than fine, at least it will work.



Am 12.06.20 um 10:33 schrieb Piotr Ozarowski:
[Matthias, 2020-06-11]
after installing a python package (radiotray) from source with pip3 (sudo pip3
install .) The package is not listed by pip3 (pip3 list), nor can it be
imported.

did you use pip3 from Debian or upstream?

When checking manually the files a located under: /usr/lib/python3.6/site-
packages/radiotray
But this path is missing in the sys.path of python3:
[...]
So please add the site-packages directory under /usr to the sys.path of
python3.

this will never happen, we removed site-packages for a good reason¹

[¹] https://wiki.debian.org/Python#Deviations_from_upstream

so… if you're using our pip3, then there's a bug (it should install into
dist-packages even if user used the
--I-know-it-s-stupid-but-please-use-sudo-and-break-my-system option)
If not (i.e. you used pip3 from outside Debian) then there's nothing we
can do.


Reply via email to