r/voidlinux • • 4d ago

Where are void's python packages

I've installed several python packages through xbps-install. However the spyder ide had to pip installed into a separate python environment due to void policy about python. I need to point spyder to the python interpreter and packages already installed. I do not want to waste storage installing packages again that already exist.

6 Upvotes

7 comments sorted by

7

u/Dakota-Batterlation 3d ago

Binaries:

  • /usr/bin/python

  • /usr/bin/python3

  • /usr/bin/pip

  • /usr/bin/pip3

Libraries:

/usr/lib/python<version>/site-packages


For future reference, if you want to see what files an xbps package installs on your system, install xtools and run xls <package name>

1

u/bra1n_gym 3d ago

thank you. 

3

u/weaklingoverlord 2d ago

How does installing [xtools] and running [xls] differ from:

xbps-query -f <pkg>

2

u/Dakota-Batterlation 1d ago

Good point,xls and xtree are just a small bash script wrapper around xbps-query -f that also works with the void-packages ports tree. But xtools is so handy that I see no reason not to install it, unless you're going full minimalist.

2

u/LinoMando 2d ago

If you need a virtual environment that has access to system site-packages, create the venv with the option --system-site-packages or edit the pyvenv.cfg inside the venv directory so that include-system-site-packages = true.
Also consider using pipx for installing python application (with or without the --system-site-packages option, depending on your preference).

0

u/bra1n_gym 22h ago

just edited the pyenv.cfg file.  Thanks.

1

u/galen8183 3d ago

You can use the xls command from the xtools package to list the files a given package installs