Multiple Python Interpreters used in the same project?

后端 未结 4 2182
甜味超标
甜味超标 2021-01-04 02:08

I am using pycharm and it only lets you use one interpreter for example Python 2.7.5 or Python 3.5.1.

The problem is I have certain modules one from google to access

4条回答
  •  春和景丽
    2021-01-04 02:55

    To use different interpreters on pycharm is easy, follow these steps bellow:

    • First you need to add a new interpreter, go to section "settings"

    • Select the tab "Project Interpreter"

    • Click on gear at right side on top

    • Click on Plus signal to add a new interpreter

    • Select the Python Executable interpreter and apply/quit other frames

    To change the interpreter, you need to follow this another steps

    • Click on the run listbox, and select the option "Edit Configurations"

    • At this window locate the section "Python Interpreter" and click on bottom arrow to select a new interpreter

    • Click on "apply.

    After these steps, you can change the interpreter any time.

提交回复
热议问题