loading...

December 21, 2020

ImportError: libxslt.so.1: cannot open shared object file: No such file or directory

ImportError: libxslt.so.1: cannot open shared object file: No such file or directory

I just got this error meanwhile i’m trying to run the example script of SerpScrap. Below a screenshot of the error.

ImportError-libxslt.so.1

How to solve it

Now let’s see how to solve this ImportError: first of all, be sure that you have already installed libxslt-dev (or libxslt1-dev). If not:

sudo apt-get install libxslt-dev

Apt will advise you that it’s going to select and install libxslt1-dev instead of libxslt-dev. It will also let you know that the following additional packages will be installed: icu-devtools libicu-dev libxml2-dev libxslt1.1

So continue the installation choosing Y when asked (Do you want to continue? [Y/n] )

After installing the required packages, i solved the error and now the script is running smoothly.

Posted in Raspberry Pi
Write a comment