How To Install Python Interpreter In PyCharm

This article will tell you how to install a python interpreter in the PyCharm project. Before start, you should make sure you had installed python on your system.

1. How To Install Python Interpreter In PyCharm.

1.1 On macOS.

  1. Open PyCharm IDE, I use PyCharm community edition with Anaconda plugin.
  2. Then click the PyCharm —> Preferences… menu item ( macOS) or Window —> Preferences menu item ( Windows OS ).
  3. In the popup Preferences window, click Project: Project-Name —> Project Interpreter menu item at the left panel. Then you can see there is no Project Interpreter that has been selected on the right panel.
  4. Click the Project Interpreter drop-down list on the right panel, then click Show All… item, it will pop up the Project Interpreters dialog window.
  5. There is a default PyCharm python interpreter in the dialog. You can select it as the project python interpreter.
  6. If you want to install another Python interpreter, you can click the plus button ( + ) at the bottom left corner of the Project Interpreters popup dialog window.
  7. Then it will popup Add Python Interpreter window. There list 4 types of python interpreters on the window left side, they are Virtualenv Environment, Conda Environment, System Interpreter, Pipenv Environment. You can select the python interpreter type from the left pane as you need.
  8. After you select one python interpreter in PyCharm, it will list all the modules package and version information that has been installed in that interpreter in the Preferences window, you can code and run your python program with that python interpreter.

1.2 On Windows.

  1. It is similar to macOS, the difference is that you should click the PyCharm File —> Settings… menu item to open the Settings dialog.
  2. The Settings dialog is the same as the Preferences dialog on macOS.
  3. Now you can follow steps 3 – 8 of section 1.1 On macOS to install the Python interpreter.

 

1 thought on “How To Install Python Interpreter In PyCharm”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Clicky