Stolen from here:
Needed to first install swig from conda (miniconda)
conda install swig
Then downloaded the EbookLib 0.15 zip from the releases
https://github.com/aerkalov/ebooklib/releases
After unzipping it, I manually removed (I used notepad++) the unicode char in the README.md file. (unicode char is on Line 44)
And then installed the module with pip.
cd to_unzipped_folder_path_here
pip install .
And finally
pip install textract