Configure a system interpreter
To configure a system Python interpreter, follow these steps:
Ensure that you have downloaded and installed Python on your computer.
If you are on Windows, you can download Python from the Microsoft Store and install it as a project interpreter. Once the Python application is downloaded from the Microsoft Store, it becomes available in the list of the Python executables. Note that interpreters added from the Microsoft Store installations come with some limitations. Because of restrictions on Microsoft Store apps, Python scripts may not have full write access to shared locations such as
TEMPand the registry.
Open the Add Python Interpreter dialog by either way:
- Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing for Windows and Linux or for macOS.
In the Settings/Preferences dialog Ctrl+Alt+S, select . Click the icon and select Add.
In the left-hand pane of the Add Python Interpreter dialog, select System Interpreter.
In the Interpreter field, type the fully-qualified path to the required interpreter executable, or click and in thelib Select Python Interpreter dialog that opens, choose the desired Python executable and click OK.
You will need admin privileges to install, remove, and upgrade packages for the system interpreter. When attempting to install an interpreter package through an intention action, you might receive the following error message: As prompted, consider using a virtual environment for your project.
Click OK to complete the task.
For any of the configured Python interpreters, you can: