2016年7月19日

摘要: 解决办法: 阅读全文

posted @ 2016-07-19 10:12 血染&征袍 阅读(2394) 评论(0) 推荐(0) 编辑


2016年7月18日

摘要: Django 模板过滤器也是我们在以后基于 Django 网站开发过程中会经常遇到的,如显示格式的转换、判断处理等。以下是 Django 过滤器列表,希望对为大家的开发带来一些方便。 一、形式:小写 {{ name | lower }} 二、串联:先转义文本到HTML,再转换每行到 标签 {{ my 阅读全文

posted @ 2016-07-18 13:21 血染&征袍 阅读(367) 评论(0) 推荐(0) 编辑


2016年7月8日

摘要: 终端输入: 阅读全文

posted @ 2016-07-08 16:51 血染&征袍 阅读(605) 评论(0) 推荐(0) 编辑


2016年7月4日

摘要: sudo apt-get install libpq-dev 阅读全文

posted @ 2016-07-04 10:29 血染&征袍 阅读(1441) 评论(0) 推荐(0) 编辑


2016年7月1日

摘要: $ pip install MySQL-python==1.2.5 报错: EnvironmentError: mysql_config not found 原因是缺少包 libmysqlclient-dev 阅读全文

posted @ 2016-07-01 18:32 血染&征袍 阅读(764) 评论(0) 推荐(0) 编辑


2016年5月12日

摘要: 缺少包 libmysqlclient-dev 阅读全文

posted @ 2016-05-12 17:41 血染&征袍 阅读(2616) 评论(0) 推荐(0) 编辑


2016年4月19日

摘要: 参考链接: https://github.com/yyuu/pyenv-virtualenv https://github.com/yyuu/pyenv http://seisman.info/python-pyenv.html http://www.it165.net/pro/html/20140 阅读全文

posted @ 2016-04-19 15:17 血染&征袍 阅读(1449) 评论(0) 推荐(0) 编辑


2016年4月8日

摘要: 系统 Ubuntu14.04 python 2.7.11 运行 pip install scrapy 报错: No matching distribution found for Twisted>=10.0.0 (from scrapy) 需要手动安装Twisted, 从官网 https://twi 阅读全文

posted @ 2016-04-08 18:56 血染&征袍 阅读(3128) 评论(0) 推荐(0) 编辑

摘要: Ubuntu14.04自带的Python2版本,是2.7.6的,想更新为最新的2.7.11,操作如下: 1、 从python官网下载2.7.11的source源码包 Python-2.7.11.tgz 2、 解压压缩包 tar -zvf Python-2.7.11.tgz 3、 cd Python- 阅读全文

posted @ 2016-04-08 18:31 血染&征袍 阅读(2202) 评论(0) 推荐(0) 编辑

摘要: Ubuntu14.04在virtualenv下安装scrapy报错,Failed building wheel for cffi,lxml,cryptography 等. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 阅读全文

posted @ 2016-04-08 16:21 血染&征袍 阅读(6273) 评论(0) 推荐(0) 编辑


Copyright © 2024 血染&征袍
Powered by .NET 8.0 on Kubernetes