Traceback (most recent call last):
File "pdf2txt.py", line 1, in <module>
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
ImportError: cannot import name process_pdfpython
解決方法ide
pip install http://pypi.python.org/packages/source/p/pdfminer/pdf
110515.tar.gz
Collecting http://pypi.python.org/packages/source/p/pdfminer/pdfminer-20110515.tar.gz
Downloading pdfminer-20110515.tar.gz (4.1MB)
100% |████████████████████████████████| 4.1MB 87kB/s
Installing collected packages: pdfminer
Found existing installation: pdfminer 20140328
Uninstalling pdfminer-20140328:
Successfully uninstalled pdfminer-20140328
Running setup.py install for pdfminer ... done
Successfully installed pdfminer-20110515
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.ip
重新安裝一個包pip