2015年4月27日

win7安装gevent时报错 whl is not a supported wheel on this platform.

摘要: ###1.首先强烈推荐一个站点在使用`pip`安装python协程包`gevent`时,需要很多依赖,很多需要编译的底层支持等等,不能拿来就用。总之很多麻烦的事儿。这个强烈推荐一个站点,里面都是一些编译好的python包,十分方便。http://www.lfd.uci.edu/~gohlke/pyt... 阅读全文

posted @ 2015-04-27 18:34 李皮筋 阅读(13664) 评论(0) 推荐(2) 编辑

python .whl文件与.egg文件用法

摘要: __都是python 的包,可以用来安装的____.whl__文件是一个python的包,对应的安装方式是:```bashpip install xx.whl```__.egg__文件也是一个python的包,对应的安装方式是用```bashez_install install xx.egg``` 阅读全文

posted @ 2015-04-27 18:18 李皮筋 阅读(3074) 评论(0) 推荐(0) 编辑

python __enter__ 与 __exit__的作用,以及与 with 语句的关系

摘要: ##转载自:http://linbo.github.io/2013/01/08/python-with/ (一直不知道博客园哪里发转载文章)###With语句是什么?有一些任务,可能事先需要设置,事后做清理工作。对于这种场景,Python的with语句提供了一种非常方便的处理方式。一个很好的例子... 阅读全文

posted @ 2015-04-27 16:16 李皮筋 阅读(24269) 评论(0) 推荐(3) 编辑

导航