Pycharm keeps asking which Python Interpreter


Every time I try and launch a program, I get asked to choose an interpreter. How can I set a default interpreter?


Did you set the interpreter in Settings/Preferences | Project | Python Interpreter?

If not, set it and then remove the existing run configurations (Run | Edit Configurations...). After that, right-click the file you want to run, choose Run from the context menu, and it should be executed with the interpreter you set in the settings.