Package not listed in requirements warnings in PyCharm

PyCharm verifies that each imported module (not in the standard library) is in requirements.txt, but for some modules (for example: grpciovs grpc), the package name is different from the module name. Is there a way to disable warnings in this case?

+4
source share
1 answer

This is a mistake in PyCharm and it is still open: https://youtrack.jetbrains.com/issue/PY-11963

You can use #noinspection PyPackageRequirements for each import with this warning to suppress it.

+3
source

Source: https://habr.com/ru/post/1668096/


All Articles