我正在尝试在Django 1.11.13上安装Django Channel 2.1.1,但是为async-timeout
包获得了一些依赖性错误:
Collecting channels
Using cached https://files.pythonhosted.org/packages/c0/24/f1f1ab62b4b35984d757dd1acbfed0f1c681c79e9beb4d275d18d42d4989/channels-2.1.1-py2.py3-none-any.whl
Collecting asgiref~=2.3 (from channels)
Using cached https://files.pythonhosted.org/packages/d3/dc/4cb440a69d3e26dfe430955520057c1cde51bc2fd9208215cf6b5662634f/asgiref-2.3.1-py2.py3-none-any.whl
Requirement not upgraded as not directly required: Django>=1.11 in ./djangoenv/lib/python3.5/site-packages (from channels) (1.11.13)
Collecting daphne~=2.1 (from channels)
Using cached https://files.pythonhosted.org/packages/d8/52/f82abaad9c6d8faa863b3c83d524931ae5ba737d8f91bea0bbb1c4eaf8a8/daphne-2.1.1-py2.py3-none-any.whl
Collecting async-timeout~=3.0 (from asgiref~=2.3->channels)
Could not find a version that satisfies the requirement async-timeout~=3.0 (from asgiref~=2.3->channels) (from versions: 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 2.0.0, 2.0.1)
No matching distribution found for async-timeout~=3.0 (from asgiref~=2.3->channels)
谢谢
答案 0 :(得分:1)
看起来像你already opened an issue about this。
正如安德鲁在这个问题上所说,问题是async_timeout
的第3版需要Python 3.5.3。他发布了asgiref 2.3.2的新版本,不需要async_timeout~=3.0
,因此安装现在应该可以使用。