我无法安装pyPDF软件包根本找不到pyPdf的发行版

时间:2014-02-24 14:20:36

标签: python install pip packages

我尝试安装此软件包......

$ 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

我运行安装包

$ 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

问题是什么?

3 个答案:

答案 0 :(得分:6)

Specipy --allow-external--allow-unverified选项:

pip install --allow-external pyPdf --allow-unverified pyPdf pyPdf

指定--allow-unverified隐含--allow-external;可以省略。

pip install --allow-unverified pyPdf pyPdf

答案 1 :(得分:2)

pyPdf不再更新,您可以在其网站here

上查看

所以你最好使用像pyPdf2这样的其他软件包。如果你坚持使用pyPdf,你可以尝试使用falsetru贴的方法

答案 2 :(得分:0)

如果您使用Debian / Ubuntu,则可以使用标准存储库来安装相应的包:

$sudo apt-get update
$sudo apt-get install python-pypdf