Creating Requirement Files
In this section:
Prerequisite
Extracting information about the required packages from the requirements file
is only available for those interpreters, where distribute
and pip
are present.
You can make sure whether the current interpreter contains these packages in the Project Interpreters page, and install them, if necessary.
To configure the default requirements file
- Open the Settings dialog box, and then click the page Python Integrated Tools.
- 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.
To define requirements, follow these general steps
- Create new file in the root directory of your project.
- In the New File dialog box, specify the file name.
- 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.
See Also
Last modified: 20 April 2016