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