Hi Prerita,
Would you mind providing the code you are using to import wrf-python? I am also curious to know what version installed when you did pip install, this would be accomplished with pip list (I assume you do not have conda installed, if you do, you can also use conda list). I have seen other issues that are based around the install not using the most recent version of the software, but I'm not completely sure if that is the case here as well.
Additionally, I did find this one StackOverflow which may be helpful if you haven't seen it already:
The answer indicates you may have a compiler issue and just need to set the path for it and try pip installing again.
Michaela