<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54589>54589</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb 14.0.0 does not open on Windows
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sr1canskhsia
      </td>
    </tr>
</table>

<pre>
    lldb 14.0.0 fails on startup and outputs
```
Python path configuration:
  PYTHONHOME = 'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310'
  PYTHONPATH = (not set)
  program name = 'python'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = 'C:\\Program Files\\LLVM\\bin\\lldb.exe'
  sys.base_prefix = 'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310'
  sys.base_exec_prefix = 'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310'
  sys.platlibdir = 'lib'
  sys.executable = 'C:\\Program Files\\LLVM\\bin\\lldb.exe'
  sys.prefix = 'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310'
  sys.exec_prefix = 'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310'
  sys.path = [
    'C:\\Program Files\\Python\\python310.zip',
    'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310\\DLLs',
    'C:/Users/hwennborg/AppData/Local/Programs/Python/Python310\\lib',
    'C:\\Program Files\\LLVM\\bin',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x0000251c (most recent call first):
  <no Python frame>
```

My OS is Windows 10 and I already have Python 3.10.4 installed under C:\Program Files\Python\

A workaround is to extract python310.zip from https://www.python.org/ftp/python/3.10.4/python-3.10.4-embed-amd64.zip and put it under C:\Program Files\Python\, but why would I need to do this if I already had Python installed in the first place?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Vktv4zgM_jXOhahhO06aHHLIJg26QPoA5rHYUyFbdKwdWTIkuWnm1w8l22kzW2DnsNPAiCmJ4kd-pCgXmp9WUvIC0jxO4gQqJqQFrcA6ZlzXAlMcdOfaztko2UbJOponwxOGjydXk3rLXA2lVpU4dIY5oVU0XfcaAI9_f759uL99uLuBaLqFKLve-NVs98WisfSuj6hUoc2B5HXbbpljJO11ySS9H40-GNZ4xR7tLEzThIxdwjyuP98OMAulHVh0UbYcddreFijW4OhMOxg9GxJWS-aQB4VknEX1LIxWDSoXFtJxoaMowAqHl9OiabVx7yzYk42fCmbxCV-w7BwrJF4QM9vQM0QNOyHR9lP7_de7XiqE6gWfu5jMvPHemw_WW4OVePmtlJ-xfCQfBdhScqQouDAjFI1-0vltzH5QjB_Kpz-7AWT2xzgP_0nZYDbI7Wg5_i5abz3b_NvQ_-N6wNvu9_YDYIayeg_l1wrpYnM02_bijhyRMDRONEYbsghCCfdU2SdUpeZCHfyc78bUhpyGAzpwNY67SAVL0FWYqzz8yTps4Lz5bW82nXKC2h21dIfebKkNBjzBpPiOvNe-07yTeK_dTneK34x-3WtowkromdwzMKLYcyH1_5vOGN8dXW2QcUheEvpls7T0vbjR1oHB0itQBiS5bWxoza8XRTTdKD3GWBG15O7Nu9fO4PIJHj5Ru4a_hOL6aCFNwoX1JzDpXThBzZ7PpE1jKtCcAicipOeVwqTOPeTz52S-1vcbwDUctfnGjGfI41Jm8MUZVjq4OAPkvG6gdq61fU3Sczwe414p7muycnRWduPts-vdO89c9eMrbArkV6zh8zxY9vHRbQzC_ar_2QYK2nCsT-R9Jz09Cvuy4pqSRXGI6oIzPlL2ypVQQ61R0oA6cEmp2U34asqX0yWbOOEkXnxJcI0W_AWsW1T-i2LI0aQzcnXJzEG4uiviUjc0kPJ5fF3Rbf0PllQkO2Fth_6szvLZYjmpVxXjxaycJvOCYTZfLjBfFFU6L-ez6yzBdDGRrEBpV76nZZnCIwQTJNM5nIhVlmRZMs2uszRJ8zQukpL2Xi9Zni-zeVFEeYINnb7Y--HzNTGr4FLRUdnniRTW2ddFZq04EKkBjuyzjugzK2vSkin7rbaCTQL-Kvj_Aw1P7b0">