分类: Python/Ruby
2011-03-08 17:30:11
1. 单文件模块
直接把文件拷贝到$python_dir/lib
2. 多文件模块,带setup.py
python setup.py install
找不到include的头文件,则:
CFLAGS=-I/opt/include/python2.5 python setup.py build/install
3. egg文件,类似Java的jar
1) 下载ez_setup.py,运行python ez_setup
2) easy_install *.egg