Dependencies exist but Pycharm shows unresolved reference

For example:

from cymem.cymem cimport Pool

The cymen has actually been installed the environment in which this project is running. 

 

Why does PyCharm still display an error?

3 comments

It looks like PyCharm gives false missing library alert in some cases. For the same 'cymem' which is installed in the virtual environment, some imports of it doesn't report an 'unresolved reference' error. 

0

No, it is not the same. Inheritance isn't involved. For example:

from ..gold import GoldCorpus

gold package is in the parent directory of the current directory. Gold is present, but it reports as "unresolved reference"

 

 

0

Please sign in to leave a comment.