_winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2]

So I tried the following I deleted my current installation of python and tried the following:

pip install -U ray[default] https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl Collecting ray==2.0.0.dev0
with the latest python 3.9.12 and got the following error:

C:\Windows\system32>pip install -U ray[default] https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl
Collecting ray==2.0.0.dev0
  Downloading https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl (20.4 MB)
     ---------------------------------------- 20.4/20.4 MB 807.4 kB/s eta 0:00:00
Collecting ray[default]
  Downloading ray-1.12.0-cp39-cp39-win_amd64.whl (19.9 MB)
     ---------------------------------------- 19.9/19.9 MB 3.8 MB/s eta 0:00:00
  Downloading ray-1.11.1-cp39-cp39-win_amd64.whl (19.4 MB)
     ---------------------------------------- 19.4/19.4 MB 3.8 MB/s eta 0:00:00
  Downloading ray-1.11.0-cp39-cp39-win_amd64.whl (19.4 MB)
     ---------------------------------------- 19.4/19.4 MB 3.9 MB/s eta 0:00:00
  Downloading ray-1.10.0-cp39-cp39-win_amd64.whl (22.8 MB)
     ---------------------------------------- 22.8/22.8 MB 3.7 MB/s eta 0:00:00
  Downloading ray-1.9.2-cp39-cp39-win_amd64.whl (21.3 MB)
     ---------------------------------------- 21.3/21.3 MB 3.8 MB/s eta 0:00:00
  Downloading ray-1.9.1-cp39-cp39-win_amd64.whl (21.3 MB)
     ---------------------------------------- 21.3/21.3 MB 3.9 MB/s eta 0:00:00
  Downloading ray-1.9.0-cp39-cp39-win_amd64.whl (21.3 MB)
     ---------------------------------------- 21.3/21.3 MB 3.7 MB/s eta 0:00:00
  Downloading ray-1.8.0-cp39-cp39-win_amd64.whl (18.3 MB)
     ---------------------------------------- 18.3/18.3 MB 4.0 MB/s eta 0:00:00
  Downloading ray-1.7.0-cp39-cp39-win_amd64.whl (18.1 MB)
     ---------------------------------------- 18.1/18.1 MB 3.8 MB/s eta 0:00:00
  Downloading ray-1.6.0-cp39-cp39-win_amd64.whl (15.6 MB)
     ---------------------------------------- 15.6/15.6 MB 3.9 MB/s eta 0:00:00
  Downloading ray-1.5.2-cp39-cp39-win_amd64.whl (15.9 MB)
     ---------------------------------------- 15.9/15.9 MB 4.0 MB/s eta 0:00:00
  Downloading ray-1.5.1-cp39-cp39-win_amd64.whl (15.9 MB)
     ---------------------------------------- 15.9/15.9 MB 3.9 MB/s eta 0:00:00
  Downloading ray-1.5.0-cp39-cp39-win_amd64.whl (15.9 MB)
     ---------------------------------------- 15.9/15.9 MB 3.7 MB/s eta 0:00:00
  Downloading ray-1.4.1-cp39-cp39-win_amd64.whl (15.7 MB)
     ---------------------------------------- 15.7/15.7 MB 3.9 MB/s eta 0:00:00
ERROR: Cannot install ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl), ray[default]==1.10.0, ray[default]==1.11.0, ray[default]==1.11.1, ray[default]==1.12.0, ray[default]==1.4.1, ray[default]==1.5.0, ray[default]==1.5.1, ray[default]==1.5.2, ray[default]==1.6.0, ray[default]==1.7.0, ray[default]==1.8.0, ray[default]==1.9.0, ray[default]==1.9.1 and ray[default]==1.9.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.12.0 depends on ray 1.12.0 (from https://files.pythonhosted.org/packages/ff/c8/a7b6f646b71c25af094ef9f017a4fefc8e5852ea6c8ec00b90e5c1b838f7/ray-1.12.0-cp39-cp39-win_amd64.whl#sha256=b172a2f97b1372b7599ee089978f67c596a67eaabe292c15c6a2b4a1b673f62f (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.11.1 depends on ray 1.11.1 (from https://files.pythonhosted.org/packages/48/9f/0d4ff44316bf4f7965335388b6551981ef4316e26db7d8f33f575cf6de2b/ray-1.11.1-cp39-cp39-win_amd64.whl#sha256=da2c79543a0f690b5bebd8debaa099c57afc47f3fe3dc937293ad0946b509d10 (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.11.0 depends on ray 1.11.0 (from https://files.pythonhosted.org/packages/72/67/a9ae8cb11cd1e77d829df6a23969da45b9f7399cd60f0c4cda28a4c20a78/ray-1.11.0-cp39-cp39-win_amd64.whl#sha256=534b18b39b8b1b44d48ca377b2819857bda89c8d2031eed0b280a7b493462a0c (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.10.0 depends on ray 1.10.0 (from https://files.pythonhosted.org/packages/d8/cd/42cd35ac8e8ad03becc2e43184be64727177742b3e3a30431ed98902d862/ray-1.10.0-cp39-cp39-win_amd64.whl#sha256=db953540f0f7e5e666d263f847b45ad368e9de5ad02da9df4e9e5ee508d5d6b6 (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.9.2 depends on ray 1.9.2 (from https://files.pythonhosted.org/packages/22/d4/651789cddeebd7f68247dc9b03f2d4882434cfa6d8047e73172d307e7a82/ray-1.9.2-cp39-cp39-win_amd64.whl#sha256=a9de944bd0dc4d553d10eb31efba4eab508f65289c5595ab56df44f65810d9dd (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.9.1 depends on ray 1.9.1 (from https://files.pythonhosted.org/packages/f4/8b/e5ee9ff0a65282b5a285e3351a9c23c8b1c9feb8f03c321965cc63ea914c/ray-1.9.1-cp39-cp39-win_amd64.whl#sha256=e1bf6e79c476677675ffb6cb5512df3d993f4c209bcf7a6607c8c10b8d8ff2ab (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.9.0 depends on ray 1.9.0 (from https://files.pythonhosted.org/packages/99/a5/462488643cab12aceda6277d7e6a60a6074f1c6b1c50bc5a196c0a5373c0/ray-1.9.0-cp39-cp39-win_amd64.whl#sha256=3f93deb83f94ebf4e99fc6169f34973587d22baaebc3b1054572bc770820d60c (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.8.0 depends on ray 1.8.0 (from https://files.pythonhosted.org/packages/ab/ec/b2a9735f9a5b84770929d80ba335bfe1d4f87f25040e1dc4cf8f05f08226/ray-1.8.0-cp39-cp39-win_amd64.whl#sha256=8bd9a2beb0594555d74907d2a390a050d4dd08158409ef0d64c1bf9fceeb149c (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.7.0 depends on ray 1.7.0 (from https://files.pythonhosted.org/packages/75/a9/1b4836380660156964dc26bc2038c1c1b084bbaa7434150f3b9c510f4e66/ray-1.7.0-cp39-cp39-win_amd64.whl#sha256=ab12fd3381721776e0121b68194df6a15264803fc39935af3de0e5b6d7987e3b (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.6.0 depends on ray 1.6.0 (from https://files.pythonhosted.org/packages/f1/b4/53e68b5873287828e747a3c0f605db807e8e16dfbeaf41bca5e1bdc7359f/ray-1.6.0-cp39-cp39-win_amd64.whl#sha256=5a684eb6a990f8e03fad2ee1259644e9d484ddbe5560ac4407264ec9b8066d82 (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.5.2 depends on ray 1.5.2 (from https://files.pythonhosted.org/packages/cc/ca/a8cfc5bf2031b6c88d028f3eab1e460e9d1ef60da06ead16baae7cf064b5/ray-1.5.2-cp39-cp39-win_amd64.whl#sha256=1d663277bce5405b9e8a9d165f7fc544c6347191c89486c58dcbad66df4a435a (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.5.1 depends on ray 1.5.1 (from https://files.pythonhosted.org/packages/d7/bd/5967980c6ffe8a60d4bd04a7595936d5dc5a160529a799cd94da6073dced/ray-1.5.1-cp39-cp39-win_amd64.whl#sha256=8cdf7c341f8d1f8c20fe35fd2025880801f619fee38022ea615efb1035e03826 (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.5.0 depends on ray 1.5.0 (from https://files.pythonhosted.org/packages/7b/1f/ec6402c1a5c12e63700bb8988bd98b086fcb89018a15da70c251ad9f6ad9/ray-1.5.0-cp39-cp39-win_amd64.whl#sha256=49132e7e10fc8b36d0c4b81490b343a9fcaacd6a500b0be5cbcc60d4f11b3350 (from https://pypi.org/simple/ray/))
    The user requested ray 2.0.0.dev0 (from https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl)
    ray[default] 1.4.1 depends on ray 1.4.1 (from https://files.pythonhosted.org/packages/eb/64/67f973a95538a976fba2eb80d3259a12753f11d63d73eeec9be244915f4c/ray-1.4.1-cp39-cp39-win_amd64.whl#sha256=6f00c78ea3468417cdb38ce488efea910182391903f8b3b3f3faa721a1aab221 (from https://pypi.org/simple/ray/))

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
WARNING: You are using pip version 22.0.4; however, version 22.1 is available.
You should consider upgrading via the 'C:\Users\denys\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade pip' command.

C:\Windows\system32>

So I instead tried just the
pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp39-cp39-win_amd64.whl Collecting ray==2.0.0.dev0

And ran the following to get the same error:

C:\Users\denys\Documents\GitHub\unity_AI\brawlhalla>python policy_server.py -ip=localhost -checkpoint=brawl
Traceback (most recent call last):
  File "C:\Users\denys\Documents\GitHub\unity_AI\brawlhalla\policy_server.py", line 166, in <module>
    ray.init(log_to_driver=False)
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\client_mode_hook.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\worker.py", line 1047, in init
    _global_node = ray.node.Node(
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 300, in __init__
    self.start_ray_processes()
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 1123, in start_ray_processes
    resource_spec = self.get_resource_spec()
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\node.py", line 462, in get_resource_spec
    self._resource_spec = ResourceSpec(
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\resource_spec.py", line 178, in resolve
    num_gpus = _autodetect_num_gpus()
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\site-packages\ray\_private\resource_spec.py", line 295, in _autodetect_num_gpus
    lines = subprocess.check_output(cmdargs).splitlines()[1:]
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\denys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

C:\Users\denys\Documents\GitHub\unity_AI\brawlhalla>

This time I for sure used latest python and nightly windows release (for 3.9).

I also tested on a different computer, and get the same issue