Python
iteye_5124
这个作者很懒,什么都没留下…
展开
-
Linux下安装MySQL-Python
1、下载mysql-python 官网地址:http://sourceforge.net/projects/mysql-python/ 2、安装mysql-python # tar -zxvf MySQL-python-1.2.3.tar.gz # cd MySQL-python-1.2.3 # whereis mysql_config mysql_config: /usr/bi...原创 2011-05-30 11:37:47 · 95 阅读 · 0 评论 -
[Errno 13] Permission denied
程序在windows下运行没有任何的问题,但是在Linux下运行时却抛出IOError [Errno 13] Permission denied。Traceback发现是fd = open(file_path, 'r+b')抛出的异常。使用namei工具查看文件(包括目录)的权限,结果文件[-rw-rw-r--]、目录[drwxrwxr-x]。这就很费解了为什么有r权限,却会报Permission...原创 2011-06-02 10:07:30 · 476 阅读 · 0 评论 -
MySQLdb-1.2.1p2 or newer is required; you have 1.2.1
在将django项目部署到新的服务器后,测试时抛出以下错误: django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 解决办法: 将MySQLdb-1.2.1版本删除,安装MySQLdb-1.2.2或者更高的版本即可。...原创 2011-07-14 15:41:49 · 83 阅读 · 0 评论