我无法安装pyPDF包没有找到pyPd的发行版

2024-03-28 18:18:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着安装这个软件包。。。

$ 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

有什么问题吗?


Tags: pipandoftoinforsearchpdf
1条回答
网友
1楼 · 发布于 2024-03-28 18:18:16

特定的^{}^{}选项:

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

指定--allow-unverified意味着--allow-external;可以省略。

pip install --allow-unverified pyPdf pyPdf
网友
2楼 · 发布于 2024-03-28 18:18:16

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

$sudo apt-get update
$sudo apt-get install python-pypdf
网友
3楼 · 发布于 2024-03-28 18:18:16

pyPdf不再更新,您可以在他们的网站上查看它here

所以你最好使用其他包,比如pyPdf2。如果你坚持使用pyPdf,你可以尝试falsetru posted方法

相关问题 更多 >