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