IntelliJ IDEA 2025.2 Help

Create a Python project

  1. Go to File | New | Project or on the Welcome screen, click New Project.

  2. In the New Project dialog, select Python as a project type.

    New Python project: existing interpreter

    Specify the project location. The project name will be automatically derived from the folder name in the specified path.

  3. If you want to proceed with the Project venv or Base conda interpreter, select the corresponding option and click Create.

    Project venv

    IntelliJ IDEA creates a virtualenv environment based on the system Python in the project folder.

    Base conda

    IntelliJ IDEA configures conda base environment as the project interpreter.

    To configure an interpreter of another type or to use an existing environment, select Custom environment.

    The following steps depend on your choice:

    Create a project with a conda environment
    • Select Conda from the list of environment types.

    • Select the Python version from the list.

    • Specify the environment name.

    • IntelliJ IDEA will detect conda installation.

      If IntelliJ IDEA did not detect the installation automatically, specify the location of the conda executable, or click Conda executable location to browse for it.

    Create a project with virtualenv
    • Select Virtualenv from the list of environment types.

    • Select the base interpreter from the list, or click Choose the base interpreter and find the Python executable in your file system.

    • Specify the location of the new virtual environment in the Location field, or click Virtual environment location and browse for the location in your file system. The directory for the new virtual environment should be empty.

    • Select the Inherit packages from base interpreter checkbox if you want all packages installed in the global Python on your machine to be added to the virtual environment you're going to create. This checkbox corresponds to the --system-site-packages option of the virtualenv tool.

    • Select the Make available to all projects checkbox if you want to reuse this environment when creating Python interpreters in IntelliJ IDEA.

    Create a project with Pipenv
    • Select Pipenv from the list of environment types.

    • Select the base interpreter from the list, or click Browse... and find the Python executable in your file system.

    • If you have added the base binary directory to your PATH environmental variable, you do not need to set any additional options: the path to the pipenv executable will be autodetected.

      If IntelliJ IDEA does not detect the pipenv executable, click Install pipenv via pip to allow IntelliJ IDEA to install it for you automatically.

      Alternatively, follow the pipenv installation procedure to discover the executable path and then specify it in the dialog.

    Create a project with Poetry
    • Select Poetry from the list of environment types.

    • Select the base interpreter from the list or click Browse... and find the Python executable in your file system.

    • If IntelliJ IDEA does not detect the Poetry installation, click Install poetry via pip to allow IntelliJ IDEA to install Poetry for you automatically.

      Alternatively, specify the location of the Poetry executable, or click Browse... to browse for it.

    • To create a virtual environment within the project directory, select the Create an in-project environment checkbox.

    Create a project with uv
    • Select uv from the list of environment types.

    • Select the base interpreter from the list, or click Choose the base interpreter and find the Python executable in your file system.

    • Normally, IntelliJ IDEA will detect uv installation.

      Otherwise, specify the location of the uv executable, or click uv executable location to browse for it.

    Create a project with Hatch
    • Select Hatch from the list of environment types.

    • Normally, IntelliJ IDEA will detect Hatch installation.

      Otherwise, specify the location of the Hatch executable, or click uv executable location to browse for it.

    • Select an environment.

      Hatch environments are workspaces designed for various project-specific tasks. If no environment is explicitly selected, Hatch will use the default environment.

    • Select the base interpreter from the list, or click Choose the base interpreter and find the Python executable in your file system.

    Selecting an existing conda interpreter for a new project

    To reuse an existing conda environment:

    • Switch Type to Conda.

    • Specify the environment name.

    • IntelliJ IDEA will detect conda installation.

      If IntelliJ IDEA did not detect the installation automatically, specify the location of the conda executable, or click Conda executable location to browse for it.

    • Select the environment from the list. If you specified the path to conda manually, you may need to reload environments.

    Selecting an existing interpreter for a new project

    To reuse a Virtualenv, Pipenv, or Poetry environment:

    • Switch Type to Python.

    • Select the Python executable from the list or click to browse for it.

  4. Click Create.

15 July 2025