无法在 Django 1.11.13 上安装 Django-Channel

Unable to install Django-Channel on Django 1.11.13

我正在尝试在 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)

谢谢

看起来像你already opened an issue about this

正如安德鲁在这个问题上所说,问题是 async_timeout 的第 3 版需要 Python 3.5.3。他发布了不需要 async_timeout~=3.0asgiref 2.3.2 的新版本,因此现在应该可以安装了。