Python 3.9安装requirements.txt中的包时出现错误

3
当我运行pip install -r requirements.txt时,我遇到了以下错误:

错误:无法找到满足cffi==1.14.0要求的版本(可用版本有:0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6, 0.7, 0.7.1, 0.7.2, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.9.0, 0.9.1, 0.9.2, 1.0.0, 1.0.1, 1.0.2.post2, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0.post1, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.7.0, 1.8.2, 1.8.3, 1.9.0, 1.9.1, 1.10.0, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.11.5, 1.12.0, 1.12.1, 1.12.2, 1.12.3, 1.13.0, 1.13.1, 1.13.2, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5) 错误:找不到与cffi==1.14.0匹配的分发版本

顺便提一下,我的requirements.txt文件包含以下内容:
absl-py==0.9.0
asgiref==3.2.7
astor==0.8.0
astunparse==1.6.3
attrs==19.3.0
backcall==0.1.0
backoff==1.10.0
beautifulsoup4==4.9.1
bleach==3.1.4
blinker==1.4
bs4==0.0.1
cachetools==3.1.1
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
click==7.1.2
cryptography==2.9.2
decorator==4.4.2
defusedxml==0.6.0
dill==0.3.1.1
Django==3.0.6
entrypoints==0.3
future==0.18.2
gast==0.3.3
geocoder==1.38.1
grpcio==1.27.2
h5py==2.10.0
idna==2.9
importlib-metadata==1.5.0
notebook==6.0.3
numpy==1.18.1
pickleshare==0.7.5
pyOpenSSL==19.1.0
pyrsistent==0.16.0
PySocks==1.7.1
python-dateutil==2.8.1
pytz==2020.1
pyzmq==18.1.1
qtconsole==4.7.4
QtPy==1.9.0
ratelim==0.1.6
requests==2.23.0
requests-oauthlib==1.3.0
testpath==0.4.4
tornado==6.0.4
tqdm==4.46.0
traitlets==4.3.3
twilio==6.40.0
urllib3==1.25.8
widgetsnbextension==3.5.1
wrapt==1.12.1
zipp==3.1.0
bcrypt
argon2-cffi
django-allauth
pywhatkit
2个回答

4

我遇到了相同的问题(在Windows上使用Python 3.9.0)。

结果发现,cffi (1.14.X) 只能在 Python 版本为 3.8.9 的情况下成功安装。


3

Pip判断您的系统不兼容。请检查您的Python版本是否符合模块要求。您可以通过执行python --version来获取Python版本。


是的,我的 Python 版本是 3.9.1。 - Mohammad Farseen

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接