Manage interpreter paths
Last modified: 23 January 2023warning
The following is only valid when the Python plugin is installed and enabled.
IntelliJ IDEA makes it possible to add paths to the selected interpreter. These paths will be added to the environment variable PYTHONPATH
. Also, IntelliJ IDEA will index these paths and (potentially) resolve the objects of the code (for example, imports of packages).
View interpreter paths
Navigate to File | Project Structure or press Ctrl+Alt+Shift+S.
In the Project Structure dialog, click SDKs node under Platform Settings.
Select the desired interpreter.
View the interpreter paths in the Classpath tab:
Add an interpreter path
In the toolbar of the Python Interpreters SDKs page of the Project Structure dialog, click
.
Choose the desired path in the Select Path dialog. Note that to add a path to a particular Python version you need to download it from https://www.python.org/ and install it on your machine.
Delete interpreter paths
Select the paths to be deleted.
In the toolbar of the Interpreter Paths SDKs page of the Project Structure dialog, click
.
Thanks for your feedback!