python中运行websockets程序时报:ImportError: cannot import name ‘Deque’ 本机Python环境为3.6.0版本,查资料发现是Python版本和websockets版本不匹配造成。故 pip uninstall websockets pip install websockets==6.0 重新运行后正常