In this section, you'll use the Intel® Distribution for Python* as your Python interpreter.

  1. From the menu, go to Window > Preferences.
  2. From the list on the left, select PyDev > Interpreters > Python Interpreter.
  3. Click Config first in PATH.

    Click Quick Auto-Config

  4. A list of Python interpreters is displayed in the Python Interpreters list. Look for the IDP interpreter, and select it, as shown in the image below. If IDP doesn't appear in the list, refer to the Troubleshooting section for steps.

    Clicking OK to select the interpreter

  5. Click Apply and Close. If successful, you'll return to your project. Continue to create your Python project.

Troubleshooting

Problem: I don't see IDP in the interpreters list.

Solution: Follow the steps below to set up IDP.

  1. If you don't see IDP in the interpreters list, you'll need to add it yourself. Click Browse for python/pypy exe.

    Click New

  2. Navigate to and select the interpreter executable for the Intel Distribution for Python. Click OK.

    Select the interpreter executable

  3. In the Select Interpreter dialog box, type IDP for your Interpreter Name. Click OK.

    Entering the interpreter name

  4. Next, select the folders that you want to add to the system path.

    Selecting the folders to add to the System Path

  5. Once selected, click OK to apply your changes. You should now be able to select IDP from the interpreters list.

    Clicking OK to select the interpreter

  6. Click Apply and Close to set IDP as your Python interpreter. Afterwards, continue to create your Python project.

Problem: Intel Distribution for Python (IDP) does not provide all the packages I would like to utilize in my application. I want to modify the Python environment that was provided.

Solution: Intel Distribution for Python (IDP) uses conda as the default Python package manager. This is preconfigured with the official Intel and community update channels. When the installation completes, you have to activate your root Intel Python conda virtual environment, as described in the IDP installation notes:https://software.intel.com/en-us/distribution-for-python/documentation/get-started. Failing to do so will break the current installation if you try to modify it. Python packages can be updated from the terminal or through the PyDev configuration tab where you selected the interpreter.

有关编译器优化的更完整信息,请参阅优化通知