Issue : You may see this error "Invalid Python interpreter selected for the project" even on executing a simple "Hello World" program. Don't worry, this is just a configuration issue.
__author__ = 'Kamal' print ("Hello World!!")
Solution: You might have installed other version of Python and uninstalled existing version. This needs an action from your end if you are using PyCharm. You need to select the correct interpreter again.
When you run this code, you'll see an alert to configure the interpreter. Select the current interpreter and click Ok.
Try to run this again.
C:\Python27\python.exe C:/Users/XYZ/Desktop/Python/HelloWorld.py Hello World!! Process finished with exit code 0