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
Comment actions Permalink

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
Comment actions Permalink

If it is similar to this

https://youtrack.jetbrains.com/issue/IDEA-99277

Add a note (not just a thumbs up)

 

0
Comment actions Permalink

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.