我有一台安装了以下软件包的Debian机器: python3,python-virtualenv,python3-virtualenv,python3-reportlab
我创建了一个虚拟环境:
virtualenv --system-site-packages -p python3 venv
source venv/bin/activate
在此之后我尝试使用pip安装z3c.RML包:
pip install z3c.RML
这是我得到的输出:
Downloading/unpacking z3c.RML
Downloading z3c.rml-3.2.0.tar.gz (1.7MB): 1.7MB downloaded
Running setup.py (path:/tmp/pip-build-zuhtd3uu/z3c.RML/setup.py) egg_info for package z3c.RML
warning: no previously-included files matching '*.png' found under directory 'src/z3c/rml/tests/output'
warning: no previously-included files matching '*.pdf' found under directory 'src/z3c/rml/tests/output'
warning: no previously-included files matching '*.png' found under directory 'src/z3c/rml/tests/expected'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
Downloading/unpacking PyPDF2>=1.25.1 (from z3c.RML)
Downloading PyPDF2-1.26.0.tar.gz (77kB): 77kB downloaded
Running setup.py (path:/tmp/pip-build-zuhtd3uu/PyPDF2/setup.py) egg_info for package PyPDF2
Downloading/unpacking Pygments (from z3c.RML)
Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB): 841kB downloaded
Downloading/unpacking backports.tempfile (from z3c.RML)
Could not find a version that satisfies the requirement backports.tempfile (from z3c.RML) (from versions: 1.0rc1, 1.0rc1)
Cleaning up...
No distributions matching the version for backports.tempfile (from z3c.RML)
Storing debug log for failure in /root/.pip/pip.log
有人知道我做错了什么吗? - 谢谢
答案 0 :(得分:1)
问题是backports.tempfile的所有者从未发布过该软件包的最终版本。您需要将--pre
选项传递给pip
。如果您不希望所有软件包都安装有预发行版本,请执行以下操作:
pip install --pre backports.tempfile
pip install z3c.rml