ImportError: libSM.so.6: cannot open shared object file: No such file or directory

For CentOS users

yum install libXext libSM libXrender

For Ubuntu users

apt-get update && apt-get install -y libsm6 libxext6 libxrender1 libfontconfig1