python小写し
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の下に1つ生成する.eggのファイルcx_Oracle-4.4.1-py2.5-linux-i686.egg
sudo easy_install cx_Oracle-4.4.1-py2.5-linux-i686.egg
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
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の下に1つ生成する.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