IntelliJ IDEA 2017.3 Help

Populating Dependencies Management Files

The following is only valid when Python Plugin is installed and enabled!

Though you can edit the dependencies management files according to their syntax, IntelliJ IDEA provides quick fixes that enable populating these files.

To populate dependency management files

  1. Create setup.py or requirements.txt, as described in the sections Creating and Running setup.py and Creating Requirement Files.
  2. In an import statement of a Python file, click a package which is not yet imported. IntelliJ IDEA suggests a quick fix:
    py add req
  3. Select and apply the suggested quick fix. The package in question is added to the dependency management file.
Last modified: 6 March 2018

See Also