虽然说想找什么库搜一下比较方便,但是觉得还是应该记录一下自己用过的库们。
首先,要知道Virtualenv,https://virtualenv.readthedocs.org/en/latest/ 也就是用来安装虚拟库的。
安装很简单,命令行敲
$ pip install Virtualenv
然后再相应的工程下面
$ virtualenv venv
创建虚拟环境,你会发现多了一个 venv的文件夹,然后里面有 include,Lib,Script三个文件夹
激活的时候,用 venv\Scripts\activate
会把虚拟环境加入路径
取消虚拟环境 deactivate
这样可以防止装酷装得乱七八糟的。或者是有时候你只是想试一下。
这个网址收藏了常用的科学开源库吧
http://www.lfd.uci.edu/~gohlke/pythonlibs
标准库优化
- toolz iterators, functions, and dictionaries的使用函数
https://pypi.python.org/pypi/toolz
http://toolz.readthedocs.org/en/latest/
服务器
- flask flask http://blog.youkuaiyun.com/artemisrj/article/details/44086877
- cgi
$ python -m CGIHTTPServer
文件处理:
- 读取exel https://pypi.python.org/pypi/xlutils
- BeautifulSoup处理html http://www.crummy.com/software/BeautifulSoup/#Download
http://blog.youkuaiyun.com/artemisrj/article/details/48468727 - xml 处理 xml.dom.minidom
http://www.cnblogs.com/fnng/p/3581433.html - ujson 快速处理json格式
https://pypi.python.org/pypi/ujson - bz2
https://docs.python.org/2/library/bz2.html
数据库
- sqlite3
机器学习
- source forge 开源项目集成
http://sourceforge.net/directory/science-engineering/ai/machinelearning/ - scikit 机器学习一些算法, 例子看这里看这里 http://scikit-learn.org/stable/auto_examples/index.html
科学计算
自然语言处理
- nltk http://www.nltk.org/
- spacy https://spacy.io/
- pattern http://www.clips.ua.ac.be/pages/pattern-en
- polyglot https://pypi.python.org/pypi/polyglot
更多 http://blog.youkuaiyun.com/artemisrj/article/details/50813031
画图
- matplotlib.pyplot 画图,数据展示。 http://www.tuicool.com/articles/7zYNZfI
便捷工具
- logging 模块, http://blog.youkuaiyun.com/zyz511919766/article/details/25136485
- plac 命令行参数解析? command-line arguments parsers
http://plac.googlecode.com/hg/doc/plac.html#plac-parsing-the-command-line-the-easy-way