install easy_install
sudo apt-get install python-dev python-setuptools (ubuntu)
install an egg by calling:
easy_install somepackage.egg
You can also give a URL to an egg and use
easy_install http://somehost.somedomain.com/somepackage.egg
安装cx_Oracle连数据库
wget http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-4.4.1.tar.gz?download
tar -zxvf cx_Oracle-4.4.1.tar.gz
cd cx_Oracle-4.4.1
python setup.py -q bdist_egg
会在dist下生成一个.egg的文件cx_Oracle-4.4.1-py2.5-linux-i686.egg
sudo easy_install cx_Oracle-4.4.1-py2.5-linux-i686.egg
ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
sudo vi /etc/ld.so.conf.d/oracle.conf
add line:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib
sudo ldconfig
testing:
>>> import cx_Oracle
>>> db = cx_Oracle.connect('hr', 'hrpwd', 'localhost:1521/XE')
>>> cursor=db.cursor()
>>> cursor.execute('SELECT SYSDATE FROM DUAL')
>>> for row in cursor:
... print row
...
(datetime.datetime(2008, 11, 29, 11, 37, 12),)
>>>
OK...
安装wxPython
sudo apt-get install python-wxgtk2.8 python-wxtools python-wxaddons wx2.8-i18n