In mac OS and Linux OS, python older version is pre-installed. So if we run pycharm, then by default pycharm picks older version of python which is 2.7.
But we want the latest version 3.0 as interpreter in pycharm. So following is the solution to add new python interpreter in pycharm.
- Open pycharm and launch your desired project (launch new one)
- Go to project settings (Short cut key Ctrl+Alt+S)
- Inside settings, find Project Interpreter and and click the configure project interpreter icon.
- Then click on add
- Here you may see a list of interpreter, then select your desired interpreter, (Here the latest version of python)
Save the settings. Now, latest python interpreter is added to your pycharm project.