1. 单文件模块:
直接拷贝到$PYTHON_HOME/Lib目录下
2. 多文件模块:
下载模块包,解压后进入模块目录下,执行 python setup.py install
3. easy_install:
easy_install packageName
4. pip:
安裝:pip install PackageName
更新:pip install -U PackageName
移除:pip uninstall PackageName
搜索:pip search PackageName
帮助:pip help
eays_install 的安装
下载 http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
pip 的安装
1) 下载 http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.pyz
2) 通过 easy_install 安装 pip :easy_install pip