PyCharm 2024.1 Help

Manage project requirements

PyCharm makes it possible to track the unsatisfied dependencies in your projects, and provides integration with the major means of dependencies management including the use of requirements.txt and Pipfile.

  • requirements.txt contains the set of packages that your application depends on. When a file with this name is added to the root project directory, it is automatically detected by Python Integrated tools.

    See Using requirements.txt for the detailed instructions.

  • Pipfile is available only for the projects with the Pipenv virtual environments. It also enables managing the set of project dependencies. However, this tool provides more capabilities for security sensitive deployment by creating the precise snapshot of the project environment including hash codes and exact package versions.

    See Use Pipfile for the detailed instructions.

  • pyproject.toml allows specifying dependencies required to build the package. PyCharm provides code completion for packages names, and a quick-fix to install the missing dependencies.

    See Use pyproject.toml for the detailed instructions.

Last modified: 11 February 2024