I cam across same issue. After some time checking my directories i found out that pip install <lib>
installing the packages on a anaconda folder.
I uninstalled the anaconda from my device and installed the packages again using pip install <lib>
, issue went away.