I need to write a python script that makes use of a lot of libraries that are not included in LO python, but I can’t get any packages installed.
I’m using LO 6.2.8 on MacOS High Sierra 10.13.6. I do have two existing python installations on my system. A python 2 installation and one with python 3.7. When searching for the topic there is usually suggested to use pip install, which I always used before to install packages to my existing python installations. “$ pip install” seems to aim at my python 2 and “$ pip3 install” to my python 3.7 installation. Executing those does not affect LO python installation.
I tried 2 methods to install packages to the LO python.
- Calling the LO python executable (with and without sudo) and using the pip module by:
“$ sudo ./python -m pip install numpy” - Using pip from the running LO python shell by:
import pip
pip.main([‘install’, ‘numpy’])
In both cases lumpy gets downloaded, but the installation always fails with:
“distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /Applications/LibreOffice.app/Contents/Frameworks/LibreOfficePython.framework/lib/python3.5/config-3.5m/Makefile (No such file or directory)”
The Makefile does exist in the directory though. Reinstalling LO did not help either. Any help would be highly appreciated.