安装Poster(流式HTTP上传和multipart/form-data编码)
我一直在网上找关于如何在不同操作系统上安装Poster(用于流式HTTP上传和多部分/表单数据编码)的说明,特别是Ubuntu和Windows。官方网站http://atlee.ca/software/poster/上有很棒的示例脚本和例子,但没有关于如何在不同操作系统上安装这个模块的内容。如果有人能帮我解决这个问题,我会非常感激。
1 个回答
4
其实很简单,你可以使用easy_install或者pip,在你的终端里运行:
easy_install poster
或者
pip install poster
如果你没有easy_install或者pip,先安装distribute:
curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
我建议使用pip,并且看看这个很棒的文档。你也可以看看关于分发模块的python文档,这对你也有帮助。
将来可以搜索pypi。如果它在pypi上,你就可以用pip或者easy_install来安装。