Skip to content
Advertisement

xlwings alternative on Linux

I have a small Python script with the purpose of updating certain cells of an Excel sheet stored on Onedrive. In particular, the Excel workbook contains a price list in one sheet, a list of variables (e.g., currency exchange rate) that are to be updated automatically via Python in the second sheet, and a history of currency exchange rates in the 3rd (also to be edited via Python). I want to let a Raspberry Pi run and execute the script at regular hours and thereby update the field that contains the currency exchange rate from Rand to Euro and to insert the current value to a history of currency exchange rates. The script should work without causing errors in case the Excel sheet is open on other devices etc (multiple users should be able to read and edit the file). On Windows, I made it work like this:

JavaScript

Unfortunately, it is not possible to install xlwings on Raspbian. Are there any alternatives to make this happen?

Errors so far:

pip3 install xlwings results in “xlwings requires an installation of Excel and therefore only works on Windows and macOS…” Running export INSTALL_ON_LINUX=1 enables installation, but the module cannot be imported. Presumably because it still doesn’t have Excel.

Advertisement

Answer

Hm, I guess this was easier than I expected:

JavaScript

doesn’t require Excel. I am not sure if it will cause any problems, though.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement