ImportError:无法从“websockets.connection”导入名称“CLOSED”

Meh*_*san 5 python websocket rasa

我在Windows上的虚拟环境中安装了rasa。但是,当我尝试检查 rasa 是否安装时,它显示一个错误:

ImportError: cannot import name 'CLOSED' from 'websockets.connection'

我已经重新安装了rasa,并安装了websockets。但仍然收到错误。

Python版本是3.10.2

谁能帮我解决这个问题?

小智 19

尝试像这样安装 websockets 10.0 版本: pip install websockets==10.0 它应该有帮助(它帮助了我)