CLion 2016.3 Help

Configuring Available Python Interpreters

In this section:

Overview

The list of Python SDKs, available for the various projects, can include interpreters installed locally, as well as the virtual environments.

Viewing the list of available interpreters

To view the list of available interpreters, do one of the following

Configuring the list of available interpreters

To configure the list of available interpreters, follow these general steps

  1. Open the Settings dialog box, and open the Python Interpreter page.
  2. Next to the Project Interpreter field, click /help/img/idea/cogwheel_framed.png.
  3. In the list of interpreter types, choose the desired option:

    Choose More to open the Project Interpreters dialog box, where it is possible to configure the list of the C/C++ interpreters, available on your computer.

    /help/img/idea/cl_pyAvailableInterpreters.png

Project Interpreters dialog box

The Project Interpreters dialog features the toolbar with the following buttons:

/help/img/idea/cl_projectInterpreters.png
IconTooltip and shortcutDescription
/help/img/idea/new.pngAdd
Alt+Insert
Click this button to choose the type of interpreter to be added: local, or virtual environment.
/help/img/idea/delete.pngRemove
Alt+Delete
Click this button to remove the selected interpreter from the list of available interpreters.
/help/img/idea/editFlexLibraryNew.pngEdit
Enter
Click this button to change the name and path of the selected interpreter.
/help/img/idea/filter.pngShow virtual environments associated with the other projectsIf this button is not pressed, CLion shows the virtual environments associated with the current project only.
/help/img/idea/icon_show_paths.pngShow paths for the selected interpreterClick this button to show the list of paths for the selected interpreter.

Auto-detecting interpreters

It is not necessary to configure all the interpreters or virtual environments. CLion can automatically detect them in certain locations. These automatically detected interpreters are denoted in the list by semi-transparent icons:

  • interpreter: /help/img/idea/python_interpreter_semitransparent.png
  • virtual environment: /help/img/idea/python_venv_semitransparent.png

The ability to automatically detect interpreters depends on the platform. CLion looks for the interpreters and virtual environments in the following locations:

  • Windows:
    • C:\PythonXX
    • C:\Program Files\PythonXX
    • PATH
    • WORKON_HOME
    • .virtualenv
  • *NIX:
    • /usr/local/bin/pythonX
    • /usr/bin/pythonX
    • PATH
  • OS X:
    • /Library/Frameworks/Python.framework/Version
    • /System/Library/Frameworks/Python.framework/Version
    • PATH

Removing interpreters from the list

To remove an interpreter from the list of available interpreters

  1. In the list of available interpreters, select the one to be deleted.
  2. Click /help/img/idea/delete.png.

See Also

Last modified: 22 November 2016