1. 单文件模块:直接把文件拷贝到$python_dir/lib2. 多文件模块,带setup.py:python setup.py install3. egg文件,类似Java的jar:1) 下载ez_setup.py,运行python ez_setup2) easy_install *.egg