IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Manage dependencies using requirements.txt

Last modified: 10 August 2022

IntelliJ IDEA provides integration with the major means of requirements management and makes it possible to track the unsatisfied requirements in your projects .

You can also run pip freeze > requirements.txt in the command line to generate a requirements.txt file for your project. See https://pip.pypa.io/en/stable/reference/pip_freeze/ for more details.

If the name of the requirements file differs from requirements.txt or when you have several requirements files in one project, you have to notify IntelliJ IDEA about the requirements file you want to apply.

Though you can always run the Sync Python Requirements to update the requirements file, IntelliJ IDEA provides quick fixes that enable populating this file.

IntelliJ IDEA provides quick fixes and notifications related to the unsatisfied dependencies.

If you have selected the Ignore option, you can always change your mind, and remove the package from the list of the ignored packages.