如何使用 Python3 安装 PyRTF?

buh*_*htz 5 python rtf python-3.x

我尝试安装 PyRTF从 PyPi,但这不起作用。

可以找到包本身:

$ pip3 search PyRTF
PyRTF (0.45)  - PyRTF - Rich Text Format Document Generation
Run Code Online (Sandbox Code Playgroud)

但是安装失败:

$ sudo -H pip3 install PyRTF
Collecting PyRTF
  Could not find a version that satisfies the requirement PyRTF (from versions: )
No matching distribution found for PyRTF
Run Code Online (Sandbox Code Playgroud)

我很迷惑。

Rug*_*dak 5

PyRTF 有一个 Python 3 版本,称为 PyRTF3。你可以在这里找到它。

PS -对于 Python 2使用pip install PyRTF3或不起作用。pip install rtfwpip install PyRTF