Adding packages to libreoffice's python can be quite tricky. Only in the case of ** windows **, I was able to put it in reasonably well. The environment is LibreOffice 5.0.3 Window 7
Assuming libreoffice installation and macros work (jre installation)
Pass path through python of libreoffice (add the following to the environment variable PATH)
C:\Program Files (x86)\LibreOffice 5\program
Insert 32bit version openssl and put it in PATH (python of libreoffice is 32bit, 64bit seems to be useless)
download
http://slproweb.com/download/Win32OpenSSL_Light-1_0_2d.exe
PATH
C:\OpenSSL-Win32\bin
https://bootstrap.pypa.io/ez_setup.py
Use Notepad (or even) to put it in a suitable place, ez_setup.Save py.
python ez_setup.Run py with administrator privileges, easy_PATH to install
C:\Program Files (x86)\LibreOffice 5\program\python-core-3.3.3\Scripts
With ipython in it, it's a lot easier.
pip works, but it doesn't work.
I referred to http://p--q.blogspot.jp/2014/03/libreoffice30pythonsqlite.html
C:\Python33\Lib\sqlite3
C:\Python33\DLLs\_sqlite3.pyd
To
C:\Program Files (x86)\LibreOffice 4\program\python-core-3.3.3\lib
Copy to
C:\Python33\DLLs\sqlite3.dll
To
C:\Program Files (x86)\LibreOffice 4\program
Copy to.
Recommended Posts