原文地址:开源中国技术翻译python
遇到的问题mysql
1.安装mysql-python 出错:mysql_config not found linux
解决:http://zhoujianghai.iteye.com/blog/1520666nginx
2.安装PIL 出错:No distributions at all found for PIL
sql
解决:Pillow代替PILshell
3.安装xlml 出错:error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
flask
4.配置完成后一直找不到程序入口,检查发现uwsgi的配置文件须要和程序入口在同一目录里面,贴上我本身的配置文件和应用结构,方便之后查验。缓存
[uwsgi] #application's base folder base = /var/www #python module to import sep = run module = %(sep) home = %(base)/flask pythonpath = %(base) #socket file's location socket = /var/www/XBSEP/Core/%n.sock #permissions for the socket file chmod-socket = 666 #the variable that holds a flask application inside the module imported at line #6 callable = sep #location of log files logto = /var/log/uwsgi/%n.log
5.每次重启uwsgi时都须要先删除run.pyc才能正常启动。不然依旧会提示no module named run,如今还未找到解决方法。
app
6.IE缓存很是严重!