https://bugs.documentfoundation.org/show_bug.cgi?id=166746
Bug ID: 166746
Summary: PIP in LibreOffice 2025.8 breaks many things including
numpy and Pandas when embedded python is used
Product: LibreOffice
Version: 25.8.0.0 alpha0+
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
PIP in LibreOffice 2025.8 May break many things including numpy and Pandas
I am the author of LibrePythonista Extension. 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 3 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.
See Also:
-
https://ask.libreoffice.org/t/pip-in-libreoffice-2025-8-may-break-many-things-including-numpy-and-pandas/
- https://g.co/gemini/share/eef328cdc075
--
You are receiving this mail because:
You are the assignee for the bug.