2017-05-31 156 views
0

我有一個Debian系統與如下因素的軟件包安裝要求backports.tempfile(從z3c.RML)版本: python3,蟒蛇-的virtualenv,python3-的virtualenv,python3-ReportLab的找不到滿足

我創建了一個帶有虛擬環境:

virtualenv --system-site-packages -p python3 venv 
source venv/bin/activate 

在此之後我tryed與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

問題是,backports.tempfile的所有者從未發佈包的最終版本。您需要將--pre選項傳遞給pip。如果您不希望所有軟件包安裝預發行版本,請執行以下操作:

pip install --pre backports.tempfile 

pip install z3c.rml