Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package not listed in requirements warnings in PyCharm

Tags:

pip

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?

like image 960
Priyatham Avatar asked Jan 28 '17 11:01

Priyatham


1 Answers

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.

like image 158
Nadya Mirgorodskaya Avatar answered Nov 29 '22 06:11

Nadya Mirgorodskaya