Python 错误:找不到满足cffi>;要求的版本=0.6(来自weasyprint->-
当我尝试从使用Python 错误:找不到满足cffi>;要求的版本=0.6(来自weasyprint->-,python,pip,setuptools,Python,Pip,Setuptools,当我尝试从使用PIP下载创建的脱机软件包文件夹中使用PIP安装WeasyPrint时,会发生此错误 ERROR: Could not find a version that satisfies the requirement cffi>=0.6 (from weasyprint->-r requirements.txt (line 13)) (from versions: none) ERROR: No matching distribution found for cffi&g
PIP下载创建的脱机软件包文件夹中使用PIP安装WeasyPrint
时,会发生此错误
ERROR: Could not find a version that satisfies the requirement cffi>=0.6 (from weasyprint->-r requirements.txt (line 13)) (from versions: none)
ERROR: No matching distribution found for cffi>=0.6 (from weasyprint->-r requirements.txt (line 13))
当我在在线机器上使用pip download-r requirements.txt-d folder\u name
下载所有软件包时,然后在离线机器上使用pip install--no index--find links=folder\u name-r requirements.txt
一切正常,但不是WeasyPrint
部分,这是我的requirements.txt:
django
psycopg2
six
openpyxl
python-dateutil
tablib
diff-match-patch
messytables
pytest-runner
setuptools-scm
lxml
setuptools-scm
weasyprint
Pyphen
有什么帮助吗?pip3为我下载weasyprint
downloadscffi
1.14。检查它是否为您下载了一个。验证您是否已将所有下载的文件传输到脱机主机。是的,它与weasyprint所需的所有其他依赖项一起下载,但当我运行pip安装时,它会给出错误,就像我们asyprint未在同一文件夹中查找。最可能的情况是,这两台计算机上的字符串不同-runpython-c”和pip.\u internal.pep425标记导入get_supported();print(get_supported()[0])
,并检查输出是否相同。