I am really intrigued by this article. I tried everything to install pdftotext lib on my mac but was unsuccessful. I keep getting this error --> " error: command 'gcc' failed with exit status 1"
I installed OS dependencies , Poppler using brew but didn't work. Can you anyone help me?
Hi, my name is Harald and I'm a passionate programmer interested in web development. I'm currently located in Austria working as a Senior Software Developer and Technical Leader for Anexia.
I just started getting the same thing on my system (Ubuntu). After a lot of Google/StackExchange, this worked (copy from my annotations):
For whatever reason, in order to install the following two, I had to install some stuff on my Ubuntu Mate ** system-wide ** to get rid of compile errors:
I am really intrigued by this article. I tried everything to install pdftotext lib on my mac but was unsuccessful. I keep getting this error --> " error: command 'gcc' failed with exit status 1"
I installed OS dependencies , Poppler using brew but didn't work. Can you anyone help me?
Have you tried to install the OS dependencies as specified in the docs? github.com/jalan/pdftotext#macos
make sure you have these two installed:
python-dev
libevent-dev
Yup i installed them . NO matter what i do, i keep getting this error --> "ERROR: Command errored out with exit status 1"
and i installed gcc too!
I just started getting the same thing on my system (Ubuntu). After a lot of Google/StackExchange, this worked (copy from my annotations):
For whatever reason, in order to install the following two, I had to install some stuff on my Ubuntu Mate ** system-wide ** to get rid of compile errors:
I'm using PyCharmCE. After the above, I could use this in the PyCharm terminal:
After I did all of that, successful! Program works like a charm (hehe).
Cheers!
Thanks for sharing your solution!
A pleasure to finally be able to give back a little!
I have a Mac, brother. Can't use app-get. what should i do now?
Are you using the default Python 2.7?? You may need to use Python 3.x
I got this working on the Mac using Python 3.7.4 using virtual env and brew. Works fine.
I am using docker with my Macbook without any issue. And it is a great alternative to start working on any environment, stack, etc.
They mention what all has to be installed for various O.S's in here pypi.org/project/pdftotext/