I downloaded the source code of python 2.7.14 and built it and installed it on linux ( Red Hat 4.8.5-16 ). I have earlier installed python-magic and requests libraries. Now when I try to import modules installed using pip, I get this: while similar thing works perfectly fine in python 2.7.5 (default with the RHEL system) Am I missing any