Make sure your Python version is added to the environment variable PATH. This is a common issue with Python installed from the Microsoft Store on Windows.
[!tip] How to add Python to PATH
A handy guide on how to set a PATH on different operating systems.
How to Add Python to PATH – Real Python
If you use multiple versions or have a nonstandard configuration, you can specify which version to use in Settings > System and under the Applications Paths header set Python Executable Path.