0

I was doing text identification and extraction from pdfs and I needed to install textract for that. However I am getting this error while installing:

Command "python setup.py egg_info" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-_get8nd7\EbookLib\

I don't know how to solve this.

F Blanchet
  • 1,430
  • 3
  • 21
  • 32
Kopal Sharma
  • 69
  • 1
  • 2
  • 10
  • Using anaconda? Have you tried this `conda install -c conda-forge textract`? – Dino May 25 '19 at 14:35
  • Possible duplicate of ["pip install unroll": "python setup.py egg\_info" failed with error code 1](https://stackoverflow.com/questions/35991403/pip-install-unroll-python-setup-py-egg-info-failed-with-error-code-1) – F Blanchet May 25 '19 at 14:36
  • @FBlanchet I tried the methods given in the answer, none of them work – Kopal Sharma May 25 '19 at 15:14
  • @Dino It gives error that PackagesNotFoundError: The following packages are not available from current channels: - textract – Kopal Sharma May 25 '19 at 15:17
  • @KopalSharma looks like [this](https://github.com/deanmalmgren/textract/issues/194#issuecomment-356203467) may fix the issue. – Dino May 26 '19 at 03:50
  • Possible duplicate of [Can't install textract on windows](https://stackoverflow.com/questions/50743723/cant-install-textract-on-windows) – Dino May 26 '19 at 03:51

1 Answers1

1

You need to update pip with python -m pip install --upgrade pip

F Blanchet
  • 1,430
  • 3
  • 21
  • 32
  • These are the errors I am getting after ugrading pip – Kopal Sharma May 25 '19 at 15:09
  • ERROR: Complete output from command python setup.py egg_info: – Kopal Sharma May 25 '19 at 15:09
  • ERROR: Traceback (most recent call last): File "", line 1, in File "C:\Users\User\AppData\Local\Temp\pip-install-rpq_wb98\EbookLib\setup.py", line 13, in long_description = open('README.md').read(), File "c:\users\user\appdata\local\programs\python\python36\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1671: character maps to – Kopal Sharma May 25 '19 at 15:10
  • ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\User\AppData\Local\Temp\pip-install-rpq_wb98\EbookLib\ – Kopal Sharma May 25 '19 at 15:10
  • You can try to reinstall pip by downloading [this file](https://bootstrap.pypa.io/get-pip.py) and launch `python get-pip.py` – F Blanchet May 25 '19 at 15:16