google-deepmind / pysc2

StarCraft II Learning Environment
Apache License 2.0
8.03k stars 1.16k forks source link

SC2LaunchError #305

Open arunraja-hub opened 4 years ago

arunraja-hub commented 4 years ago

I followed the following steps:

  1. $ pip install pysc2
  2. downloaded Starter edition from http://battle.net/sc2/en/legacy-of-the-void/
  3. Moved Battle.net folder to a manually created StarCraft II/Versions folder
  4. $ python -m pysc2.bin.agent --map Simple64

I have this error now:

pysc2.lib.sc_process.SC2LaunchError: No SC2 Versions found in C:/Program Files (x86)/StarCraft II\Versions
I0627 21:52:06.118542 18080 sc2_env.py:752] Environment Close

My entire Battle.net is located in C:/Program Files (x86)/StarCraft II\Versions. The Battle.net folder contains the following: image Please help with troubleshooting this issue. Thank you

Nickrader commented 2 years ago

manually created StarCraft II/Versions folder

Link instructions followed is always helpful.

The 'Versions' folder should have folders in it named "BaseXXXXX" (e.g. Base87702) If you click on one of those folders, you should see an executable. (e.g. SC2_x64.exe)

If not, then search your system for SC2.exe or SC2_x64.exe ; Edit environment variable? If you changed the install location, you might need to set the SC2PATH environment variable with the correct location. https://github.com/deepmind/pysc2#windowsmacos

https://docs.oracle.com/en/database/oracle/machine-learning/oml4r/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html