Install, uninstall, and upgrade interpreter paths
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).
To view the interpreter paths
-
Open the Project Structure dialog (for example Ctrl+Alt+Shift+S).
-
In the Project Structure dialog, click SDKs node under the Platform Settings.
-
Select the desired interpreter.
-
View the interpreter paths in the Classpath tab:
To add an interpreter path
-
In the toolbar of the 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.
To delete interpreter paths
-
Select the paths to be deleted.
-
In the toolbar of the SDKs page of the Project Structure dialog, click
.