ModuleNotFoundError:没有名为“websockets”的模块

问题描述 投票:0回答:4

我的python版本是3.6。我正在将本教程用于 Statecraft AI (https://pythonprogramming.net/building-neural-network-starcraft-ii-ai-python-sc2-tutorial/)。我从这里导入了 SC2 模块(https://github.com/daniel-kukiela/python-sc2)。

我在跑步时遇到此错误

ModuleNotFoundError:没有名为“websockets”的模块

python-3.x neural-network artificial-intelligence reinforcement-learning
4个回答
2
投票

尝试使用 pip3,它对我有用。



0
投票

我花了几个小时尝试安装和卸载

websocket
websocket-client
但我需要的真正模块名为
websocket_client

pip install websocket_client

0
投票
sudo python3 -m pip install websocket
© www.soinside.com 2019 - 2024. All rights reserved.