The issue has been resolved after reinstalling Pycharm and setting up python packages again from scratch, except this time using python 64-bit (was using 32-bit before). Moreover, I was using Continuum Analytics's python package manager. I no longer use it so that might also have been the culprit.