【问题标题】:How to fix 'Install tornado itself to use zmq with the tornado IOLoop.' warning in Python如何修复“安装龙卷风本身以将 zmq 与龙卷风 IOLoop 一起使用。” Python中的警告
【发布时间】:2019-08-29 22:04:38
【问题描述】:

我一直在关注这个 (https://developer.ibm.com/tutorials/se-distributed-apps-zeromq-part2/) 教程来设置使用 CurveZMQ 加密消息的 ZeroMQ 客户端/服务器设置。该代码有效,但是每当我运行客户端或服务器时,它都会指示我'Install tornado itself to use zmq with the tornado IOLoop.'

我发现警告出现在任何带有以下导入语句的文件中。

from zmq.eventloop.zmqstream import ZMQStream

我查看了 zmq 的代码,发现它使用了“minitornado”,这可能是问题所在,但我不太了解 tornado 或如何使用它。

【问题讨论】:

    标签: python tornado zeromq pyzmq


    【解决方案1】:

    您需要升级 pyzmq。您可以使用此命令强制您的环境重新安装更新版本。 (它对我有用!)

    pip install --upgrade --force-reinstall pyzmq
    

    【讨论】:

      【解决方案2】:

      不知道是不是和你的问题有关。我用谷歌搜索了同样的问题,但与 jupyter notebooks 500 internal server error 相关,并找到了你的问题。我通过将龙卷风降级到版本 5 (sudo -H pip3 install "tornado==5") 解决了我的问题,并且一切正常。我希望您现在找到解决方案,或者我的提示对您有所帮助。

      【讨论】:

        猜你喜欢
        • 2011-10-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多