Windows10下:
1、安装python3
2、pip3 install pysc2
3、修改Users/username/AppData/Local/Programs/Python/Python36/Lib/site-packages/pysc2/run_configs下platforms.py
``
class Windows(LocalBase):
  """Run on Windows."""
  def __init__(self):
    super(Windows, self).__init__(
        os.environ.get("SC2PATH", "D:\\TestGame\\StarCraft II"),
        "SC2_x64.exe", "Support64")
``
主要修改其SC2PATH路径
4、下载地图:https://github.com/deepmind/pysc2/releases/download/v1.0/mini_games.zip
5、地图放在StarCraft II\Maps下
6、启动测试:D:\>python -m pysc2.bin.agent  --map MoveToBeacon


参考网址:
https://blog.csdn.net/dlphay/article/details/77862086
https://zhuanlan.zhihu.com/p/29246185

09-07 11:35