import sys reload(sys) sys.setdefaultencoding('utf8')
and then apply
text1=text.decode('utf-8')import sys reload(sys) sys.setdefaultencoding('utf8')
and then apply
text1=text.decode('utf-8')ENABLE_USER_SITE and then re-install the package, it would be installed in machine level directory, and then it would be accessible via php also (www-data user)
ENABLE_USER_SITE