Couldn't Install Textract In Google Colab
I couldn't install textract in google colab, error message showing as below. some people suggest to use sudo apt-get install libasound2-dev but how to do sudo... in google colab?
Solution 1:
Nope you can't use sudo
because you don't get root
access for colab.
The problem is that you don't just need libasound2-dev
but a whole host of packages. Check debian requirements in https://textract.readthedocs.io/en/stable/installation.html
Also in order to build sphinx
(a requirement for textract
) you need libpulse-dev
. So here is the updated command list.
!apt-get install python-dev libxml2-dev libxslt1-dev antiword unrtf poppler-utils \
pstotext tesseract-ocr \
flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig libasound2-dev libpulse-dev
!pip install git+https://github.com/deanmalmgren/textract
Solution 2:
In google colab Bash commands run by prefixing the command with ‘!’.
Example:
!apt update!apt-get install libasound2-dev
Post a Comment for "Couldn't Install Textract In Google Colab"