Encountering "Fatal Python error: Segmentation fault" error in python script

I have installed pymysql and other packages with pip only.