In any stage, while doing python programming in Pycharm, we can encounter this error - “No python interpreter configured for this project.”
This error usually occurs when you are programming in Python and particularly using PyCharm IDE. To solve this error first you have to know what is Python and PyCharm.
Python is an interpreter that can be used to execute the python code
PyCharm is an integrated development environment used in computer programming, especially for the Python programming language(though other languages are also supported) that can display the output of your python programs in the console with the help of the installed python interpreter. PyCharm provides some best features to its users and developers in the following aspects.
Now let’s come back to the solution.
Step 1: In the PyCharm window you can see the option of “Configure Python Interpreter” in the upper right corner.
Step 2: Click on this "Configure python interpreter" option. A settings window will appear in which the project interpreter will open.
You can also open a Project interpreter from the File option.
Go to File -> Settings -> Project -> Project Interpreter.
Step 3: In the “Project Interpreter” menu, you will get an option of selecting the project interpreter. I have a Python 3.6 project interpreter option because I am working with Python 3.6. Sometimes, there will be no option for a project interpreter. The reason can be either you have not installed python or your PyCharm is unable to locate a valid Python interpreter.