bitte, markieren Sie es nicht als Duplikat, weil Lösungen auf ähnliche Fragen für michKein Modul mit Python-poppler namens poppler installiert
Mein System nicht funktionieren ist Ubuntu 16.04, ich bin mit Python 2.7. 12
Was ich versuche zu tun, ist mit pdftohtml PDF-Dateien in HTML zu konvertieren. Es scheint, dass ich es mit Poppler machen könnte.
Ich habe installiert Python-poppler mit sudo apt-get install installiert und es scheint:
dpkg -s python-poppler
Package: python-poppler
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 144
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 0.12.1-8.1
Provides: python2.7-poppler
Depends: libc6 (>= 2.4), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0), libpoppler-glib8 (>= 0.18.0), python (>= 2.7), python (<< 2.8), python-gtk2 (>= 2.10.0), python-gobject (>= 2.10.1), python-cairo (>= 1.8.4)
Description: Poppler Python bindings
This package includes Python bindings for LibPoppler.
It is needed to run programs written in Python and using Poppler set.
LibPoppler is a PDF rendering library based on xpdf PDF viewer, and used by
kpdf and evince PDF viewers.
Original-Maintainer: Andrea Gasparini <[email protected]>
Homepage: http://launchpad.net/poppler-python
jedoch bei der Einfuhr poppler es wirft einen Importfehler. Was fehlt mir hier?
Können Sie bitte Ihren Code zeigen? –
Poppler importieren - das ist eigentlich alles, was ich in das Skript geschrieben habe. Vielleicht sollte ich etwas anderes installieren - zusätzlich oder stattdessen ... – fanny
Hast du versucht pip install poppler? –