I am the author of LibrePythonista. Today I was testing the extension in LibreOffice Developer.
Version: 25.8.0.0.alpha1 (X86_64) / LibreOffice Community
Build ID: a2896e060b54ce6ce36e3e29218fac40d2919c74
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
This version of LibreOffice contains a pip installer. However, the pip installer is not a complete version.
It is missing several files such as the following in the C:\Program Files\LibreOfficeDev 25\program\python-core-3.11.12\lib\pip\_vendor\distlib
folder:
- t32.exe
- t64.exe
- t64-arm.exe
- w32.exe
- w64.exe
- w64-arm.exe
When I try t install Pandas Manually in PowerShell I get the following Error:
& "C:\Program Files\LibreOfficeDev 25\program\python.exe" -m pip install pandas
...
Installing collected packages: pytz, tzdata, six, numpy, python-dateutil, pandas
...
File "C:\Program Files\LibreOfficeDev 25\program\python-core-3.11.12\lib\pip\_vendor\distlib\scripts.py", line 339, in _make_script
self._write_script(scriptnames, shebang, script, filenames, ext)
File "C:\Program Files\LibreOfficeDev 25\program\python-core-3.11.12\lib\pip\_vendor\distlib\scripts.py", line 260, in _write_script
launcher = self._get_launcher('t')
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\LibreOfficeDev 25\program\python-core-3.11.12\lib\pip\_vendor\distlib\scripts.py", line 419, in _get_launcher
raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
The t64.exe
file and maybe more seem to be required to install Pandas.
I suspect any existing methods to install Pandas and some other packages into LibreOffice will fail when embedded python with pip is used.
This also affect LibrePythonista is it also installs Numpy, Pandas and more, or at least did on previous versions.
With the built in pip LIbrePythonista can no longer Install the required packages. It is not really possible or recommended to install a second pip to get around this.
I tired a workaround just to see if it could work and it does.
My workaround was to download embeddable python 3.11.12 and extract is contents.
Then I replaced C:\Program Files\LibreOfficeDev 25\program\python-core-3.11.12\lib\pip
with the pip from the embedded version.
I tested installing LibrePythonista and Pandas again and it worked.
Any thoughts on this?