Priyatham
Priyatham

Reputation: 2897

Package not listed in requirements warnings in PyCharm

PyCharm checks that every imported module (not in the standard lib) is in requirements.txt but for some modules (eg: grpcio vs grpc), the package name is different from the module name. Is there a way to silence the warnings in this case?

Upvotes: 12

Views: 6734

Answers (1)

Nadya Mirgorodskaya
Nadya Mirgorodskaya

Reputation: 121

It's the bug in PyCharm, and it's still open: https://youtrack.jetbrains.com/issue/PY-11963

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

Upvotes: 12

Related Questions