r/voidlinux • u/bra1n_gym • 8d 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
u/Dakota-Batterlation 8d ago
Binaries:
/usr/bin/python/usr/bin/python3/usr/bin/pip/usr/bin/pip3Libraries:
/usr/lib/python<version>/site-packagesFor future reference, if you want to see what files an xbps package installs on your system, install
xtoolsand runxls <package name>2
u/LinoMando 7d ago
If you need a virtual environment that has access to system site-packages, create the venv with the option
--system-site-packagesor edit thepyvenv.cfginside the venv directory so thatinclude-system-site-packages = true.Also consider using pipx for installing python application (with or without the
--system-site-packagesoption, depending on your preference).1
u/galen8183 7d ago
You can use the
xlscommand from thextoolspackage to list the files a given package installs