아래와 같은 에러에서
>>> from lxml import html
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/lxml/html/__init__.py", line 53, in <module>
from .. import etree
ImportError: libxslt.so.1: cannot open shared object file: No such file or directory
>>>
다음 패키지를 설치하여 해결함
pi@raspberrypi:~/elebot $ sudo apt-get install libxslt-dev
결과
pi@raspberrypi:~/elebot $ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import html
>>>