PyCharm 3.4.0 Web Help

PyCharm makes it possible create virtual environment using the virtualenv tool. So doing, PyCharm tightly integrates with virtualenv, and enables configuring virtual environments right in the IDE.

virtualenv tool comes bundled with PyCharm, so the user doesn't need to install it.

To create a virtual environment
  1. Under the project settings, open Project Interpreters page.
  2. Click cogwheel_framed next to the Project Interpreter field, and choose the option Create VirtualEnv.

    Create Virtual Environment dialog box opens.

  3. In the Create Virtual Environment dialog box, do the following:
    • In the Name field, type the name of the new virtual environment, or accept the suggested default name.
    • In the Location field, specify the target directory, where the new virtual environment will be created, or accept the suggested default location.
    • From Base interpreter drop-down list, select one of the configured Python interpreters, which will be used as the base for the new virtual environment. 3.4+

      If the desired base interpreter is missing in the drop-down list, you can locate it manually by clicking browseButton.

    • If you want the site-packages of the base interpreter to be visible from the virtual environment, select the check box Inherit global site-packages. If you leave this check box cleared, the new virtual environment will be completely isolated.
    • You can make this virtual environment available to all projects, by selecting the check box Make available to all projects.

    Click OK to apply changes and close the dialog box.

    py_createVenv_dialog

Note

You can create as many virtual environments as required. To easily tell them from each other, use different names.

See Also

Procedures:

Reference:

External Links:

Web Resources: