Is it possible to install some additional python libraries from SuperTool ?
I’m using Windows and I want to use some of them from SuperTool, like Panda.
It’sprobably a question for @kku ![]()
Is it possible to install some additional python libraries from SuperTool ?
I’m using Windows and I want to use some of them from SuperTool, like Panda.
It’sprobably a question for @kku ![]()
I wouldn’t install packages within Supertool (or within Gramps). My understanding is that installing packages should normally be done externally, using the installation methods applicable to the specific package.
Anyway, you CAN do something like this in Supertool:
import subprocess
packagename = "pandas"
subprocess.run(f"{sys.executable} -m pip install {packagename}", shell=True)
See more details here:
https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program
Gramps itself does use pip when installing required packages for an addon (gui/plug/_windows.py):
subprocess.check_output(
[
"pip.exe" if win() else "pip",
"install",
"--target",
LIB_PATH,
package,
],
stderr=subprocess.STDOUT,
)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.