Python
文章平均质量分 53
rainysia
这个作者很懒,什么都没留下…
展开
-
debian(wheezy)安装wxPython进行GUI开发.
因为官方的http://wiki.wxpython.org/InstallingOnUbuntuOrDebian 并没有wheezy的所以这里我们直接去仓库搜吧root@debian:/# apt-cache search python-wxgtkpython-wxgtk2.8 - wxWidgets Cross-platform C++ GUI toolkit (wxPyt原创 2014-11-03 10:31:39 · 2882 阅读 · 0 评论 -
Debian (Jessie 8.0) 的修复pip AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'
升级到最新的stable后,python的pip还是老的. 在安装一些包的时候,报错了Traceback (most recent call last): File "/usr/bin/pip", line 9, in load_entry_point('pip==1.5.6', 'console_scripts', 'pip')() File "/usr/lib/pytho原创 2015-05-12 13:55:40 · 11840 阅读 · 4 评论 -
vim的python代码检测工具
这里介绍三个vim的插件, 一个是pyflakes,另外一个是pep8,还有它们的合体flake8安装安装很简单,找到你的.vim目录,把这两个压缩包解压了放进去 去下面vim官方下下来. pyflakes http://www.vim.org/scripts/script.php?script_id=2441 pep8 http://www.vim.org/scripts/script.原创 2015-07-06 14:38:36 · 10149 阅读 · 0 评论 -
ansible配置private key来免密码登录
最近在作自动化部署发布.读了一下ansible的代码和工作流.需要部署一些免密码登录的操作. 记录下现在有两台机器, 一台服务器A安装了ansible, 一台是服务器B需要被操作的.随便建立一个项目文件夹.为了方便管理, 我这样划分的项目 在conf里面放所有的配置, 包括hosts和ansible.cfg, 然后作一个软链接到最外面. ansible.cfg的优先级将是当前目录原创 2015-11-04 00:31:54 · 28719 阅读 · 1 评论 -
Could not run curl-config: [Errno 2] No such file or directory
debian安装pycurl写爬虫的时候,root@debian:/# pip install pycurl --upgradeDownloading/unpacking pycurl from https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.5.1.tar.gz#md5=f44cd54256d7a643ab7b16e3f4原创 2015-11-04 00:30:46 · 9859 阅读 · 1 评论