UnresolvedError on importing package in eclipse

Is the error being reported by the PyDev / eclipse IDE, or does it happen when you run the code?

In the first case, this is probably due to eclipse caching the information about what packages you have installed.

What you need to do is go to “Preferences -> Pydev -> Interpreter – Python” where you define the python interpreter to be used. Remove the current interpreter, and add it back in again.

This will cause eclipse to re-read all the path information and it should clear the error.

Read more here: Source link