PyCharm
 
Get PyCharm

Use pyproject.toml

Last modified: 11 February 2024

You can specify the project dependencies in the pyproject.toml file inside the project directory. You can create pyproject.toml manually or configure a Poetry environment, so that it's created automatically.

PyCharm provides code completion for packages names, and a quick-fix to install the missing dependencies.

You can also provide the optional dependencies of the project in the [project.optional-dependencies] section or specify the build-time dependencies in [build-system.requires].

If the name of the package is highlighted, it means that this package has not been installed for the current Python interpreter.