How to Change Python Version in Pycharm? : Only 4 Steps

I guess most of us are aware of the fact that syntax in Python 2.x series are little different than the Python 3.x series. Obviously there can be a situation where you have to change the interpreter version for the program run. Specially when your IDE is Pycharm everything is quite easy.If you are looking for how to change the python version in PyCharm? I think this article is just for you.

Steps to change python version in pycharm-

Step 1 :

  1. Check if you already have that version interpreter of Python pre-installed  . Suppose if you have Python 3.7 but you need a virtual env in pycharm for 2.7 base interpreter. In order to check it, Go to –

File -> Settings -> Project ->Project Interpreter 

How to change python version in pycharm step 1

how to change python version in pycharm step 1

Refer to the above diagram, Here click on the drop-down of Project Interpreter row ( Where the No Interpreter is mention). It will show you the name and path of the Interpreter which are already configured. All you need to select one of them if they are available at Run time Configuration in Pycharm ( Hint Run -> Edit Configurations).

Step 2:

In case the desire interpreter is not available. Go and install the required from 

Python version download.

Step 3 :

Set the path in system variable . Specially while installing from window installer, It will show you the option to set the path automatically with the installation . In case you do not opt it. Go and manually add it.

Step 4 :

Now once you have done till step 3, Restart the Pycharm and select the desired interpreter in Run -> Edit Configurations inside Pycharm IDE. Now you may use this global python interpreter for the project. But in case you want to create the virtual env based on this interpreter. You may go to File -> Settings -> Project ->Project Interpreter and click on the setting icon and choose add .

how to change python version in pycharm step 4.
How to change python version in pycharm step 4.

Refer to the above image and change the base Interpreter here. Here you may choose the one which is the newest you installed.


Data Science Learner Team

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for signup. A Confirmation Email has been sent to your Email Address.

Something went wrong.

Thank you For sharing.We appreciate your support. Don't Forget to LIKE and FOLLOW our SITE to keep UPDATED with Data Science Learner