https://bugs.documentfoundation.org/show_bug.cgi?id=143980
Rafael Lima <rafael.palma.l...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rafael.palma.l...@gmail.com --- Comment #7 from Rafael Lima <rafael.palma.l...@gmail.com> --- I would like to share some findings that might help us come up with a solution to install additional Python packages into LO. On Ubuntu-based operating systems, if you install LO from their PPA, LibreOffice will not be installed with the bundled Python. Instead LO will use the same python used by the operating system. The PPA installation does not have the "program/python.bin" that comes with the DEB file downloaded from TDF's website. For Ubuntu users that install LO from the PPA the problem reported here does not exist. Packages as numpy come preinstalled in Ubuntu and any packages installed using system-wide pip will be available in Python scripts launched by LO. After Alain drew my attention to this bug I did some testing on Ubuntu and I was able to create a script using numpy, pyqt5 and ScriptForge and launched the script from withing LO Calc. I created a PyQt5 dialog and had it interact with the Calc file. Although this only works in Ubuntu using the PPA installation, it shows that it is possible to use anything from Python from within LO. And IMO this is very powerful specially for those working with data science, data mining, and so forth. (In reply to Ming Hua from comment #5) > Maybe starting with adding "ensurepip" module into our bundle, and writing a > good > tutorial about setting up PIP and installing packages from PyPI with > LO-bundled python? I liked the idea of having the ability to install additional packages using PIP. However, another idea would be to have a Python setup dialog as the one we currently have for JRE (in Tools - Options - Advanced). The user could use such dialog to choose which Python interpreter to use. -- You are receiving this mail because: You are the assignee for the bug.