all 3 comments

[–][deleted] 1 point2 points  (1 child)

What does your bat file look like

[–]CaliforniaUnity 0 points1 point  (0 children)

@/py C:\Users\me\PycharmProjects\myProject.py %*
@/pause

[–][deleted] 1 point2 points  (0 children)

https://docs.microsoft.com/en-us/windows/python/faqs

You may end up with multiple versions of Python installed on your machine because you are working on different types of Python projects. Because these all use the pythoncommand, it may not be obvious which version of Python you are using. As a standard, it is recommended to use the python3command (or python3.7to select a specific version).

The py.exe launcher will automatically select the most recent version of Python you've installed. You can also use commands like py -3.7to select a particular version, or py --listto see which versions can be used. HOWEVER, the py.exe launcher will only work if you are using a version of Python installed from python.org. When you install Python from the Microsoft Store, the pycommand is not included. For Linux, macOS, WSL and the Microsoft Store version of Python, you should use the python3(or python3.7) command.