【问题标题】:Unable to install Django-Channel on Django 1.11.13无法在 Django 1.11.13 上安装 Django-Channel
【发布时间】:2018-11-02 12:45:45
【问题描述】:

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

谢谢

【问题讨论】:

    标签: python django python-3.x django-channels


    【解决方案1】:

    看起来像你already opened an issue about this

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

    【讨论】:

    • 你好@Alasdair,我想使用supervisord守护进程在apache2网络服务器上部署django-channel,但是这个包不支持python 2.4,有没有可用的替代品?我也搜索了 monate 但不适合我的配置
    • 这听起来像是一个无关的问题,所以我无能为力。 Django 频道仅适用于 Python 3。 Python 2.4 已经过时 ,因此您很难找到支持它的最新库。
    • 是的,实际上,要在 web 服务器上连续运行 web socket,为此我想使用 supervisord,它仅支持 python 2.4 和 python 3 正在开发中
    • 正如我所说,这是一个单独的问题,因此与此问题无关。 See this question.
    • 好的。让我更多地搜索这个主题。谢谢你的帮助。非常感谢您在这个主题上的帮助。
    猜你喜欢
    • 2013-11-06
    • 1970-01-01
    • 2020-11-02
    • 2020-10-28
    • 1970-01-01
    • 2017-04-18
    • 2016-11-09
    • 1970-01-01
    • 2014-06-25
    相关资源
    最近更新 更多