alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 374 forks source link

Error when importing investpi in Raspberry Pi Zero python3 #531

Closed wongfred88 closed 2 years ago

wongfred88 commented 2 years ago

hi there I encountered an error when importing investpi in python3 with Raspberry Pi Zero. Here are the code:

import investpi as inv Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.9/dist-packages/investpy/init.py", line 7, in from .bonds import ( File "/usr/local/lib/python3.9/dist-packages/investpy/bonds.py", line 13, in from lxml.html import fromstring File "/usr/local/lib/python3.9/dist-packages/lxml/html/init.py", line 53, in from .. import etree ImportError: libxslt.so.1: cannot open shared object file: No such file or directory

I have installed the investpi module using "sudo apt-get install investpy" and the installation is completed. Any suggestion will be welcome.

wongfred88 commented 2 years ago

Oh, it works now by installing "sudo apt-get install libxslt-dev", thanks.