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?


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. 


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

from import GoldCorpus

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




Please sign in to leave a comment.