IntelliJ IDEA 2018.1 Help

Creating Requirement Files

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

On this page:

Creating requirements

To define requirements, follow these general steps

  1. Create new file in the root directory of your project.
  2. In the New File dialog box, specify the file name.
  3. Type the names of the required packages as plain text. Note that recursive requirements syntax is supported: you can use the main requirements file, and include the other requirements with -r syntax.

Configuring the default requirements file

To configure the default requirements file

  1. Open the Settings/Preferences dialog box, and then click the page Python Integrated Tools.
  2. In the Package requirements file field, type the name of the requirements file. By default, requirements.txt is suggested. You can either accept default, or click the browse button and locate the desired file.
Last modified: 7 February 2018

See Also