我试着安装这个包...
$ pip search pyPdf
PyPDFLite - Simple PDF Writer.
pypdfocr - Converts a scanned PDF into an OCR'ed pdf using Tesseract-OCR and Ghostscript
pyPdf - PDF toolkit
PyPDF2 - PDF toolkit
pyjon.reports - Pyjon.Reports is a module bridging z3c.rml, genshi and pypdf together to provide a simple mean of creating templated pdf documents in python.
pypdf2xml - A reimplementation of pdftoxml in Python, using pdfMiner. Handles unicode characters better.
pypdflib - Pango Cairo based Python PDF Library
pypdf2table - PDF table extraction tool然后我运行install the package
$ pip install pyPdf
Downloading/unpacking pyPdf
Could not find any downloads that satisfy the requirement pyPdf
Some externally hosted files were ignored (use --allow-external pyPdf to allow).
Cleaning up...
No distributions at all found for pyPdf
Storing debug log for failure in /tmp/tmpgEc3B有什么问题吗?
发布于 2014-02-24 22:24:49
指定--allow-external,--allow-unverified选项:
pip install --allow-external pyPdf --allow-unverified pyPdf pyPdf指定--allow-unverified隐含--allow-external;,但省略。
pip install --allow-unverified pyPdf pyPdf发布于 2014-02-24 22:36:30
pyPdf不再更新,您可以在其网站here上查看
所以你最好使用其他的包,比如pyPdf2。如果您坚持使用pyPdf,您可以尝试falsetru posted方法
发布于 2016-09-14 13:28:37
如果您使用的是Debian/Ubuntu,可以使用标准仓库安装相应的包:
$sudo apt-get update
$sudo apt-get install python-pypdfhttps://stackoverflow.com/questions/21990416
复制相似问题