ImportError: No module named pysqlite2


Warning: Use of undefined constant g_prettify_esc_callback - assumed 'g_prettify_esc_callback' (this will throw an Error in a future version of PHP) in /home/wwwroot/dbci/wp-content/plugins/g-prettify/prettify.php on line 19
yum install sqlite-devel -y
wget peak.telecommunity.com/dist/ez_setup.py
python2.6 ez_setup.py
easy_install pysqlite

这样就可以把python模块安装到$PYTHON_HOME所指定的路径中了。而不是如/usr/lib/python2.6/ 中。

点赞