pip error when installing tesserocr

In Xubuntuthe python2virtual environment,
using the pipinstallation tesserocrif a fault occurs error: command 'x86_64-linux-gnu-gcc' failed with exit status 1,

Generally due to the lack libtesseract-dev, enter the following command can be installed in the terminal:sudo apt install libtesseract-dev

If the problem is not resolved after installation, you can enter the following command to install the library:

sudo apt-get install libxml2-dev libxslt1-dev python-dev zlib1g-dev libevent-dev

If some libraries already installed, and aptwill install automatically skip

Guess you like

Origin www.cnblogs.com/zzhaolei/p/11068064.html