我第一次尝试使用 Windows Python Launcher (py.exe)。我在命令 shell 中运行 python,但在同一 shell 中运行的启动器找不到要运行的任何版本的 python.exe:
where python
C:\Python38\python.exe
py --list
Installed Pythons found by py Launcher for Windows
No Installed Pythons Found!
Run Code Online (Sandbox Code Playgroud)
显然我的配置中缺少一些东西,但我不知道是什么。我一直在深入研究注册表并在以下位置找到了密钥:
HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Python/PyLauncher
HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Python/PythonCore
Run Code Online (Sandbox Code Playgroud)
但没有任何内容引用任何可执行文件。
任何帮助表示赞赏!