読者です 読者をやめる 読者になる 読者になる

python::モジュール O/Rマッパーライブラリ SQLAlchemy

import MySQLdb してわーいな所で、SQLAlchemyというpython界隈では主力っぽいO/Rマッパを。

インストール
C:\Python27\Scripts>pip.exe install SQLAlchemy
Downloading/unpacking SQLAlchemy
  Downloading SQLAlchemy-0.7.2.tar.gz (2.4Mb): 2.4Mb downloaded
  Running setup.py egg_info for package SQLAlchemy

    warning: no files found matching '*.jpg' under directory 'doc'
    warning: no files found matching 'Makefile' under directory 'doc'
    no previously-included directories found matching 'doc\build\output'
Installing collected packages: SQLAlchemy
  Running setup.py install for SQLAlchemy
    building 'sqlalchemy.cprocessors' extension
    ***************************************************************************
    Unable to find vcvarsall.bat
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Failure information, if any, is above.
    Retrying the build without the C extension now.
    ***************************************************************************

    warning: no files found matching '*.jpg' under directory 'doc'
    warning: no files found matching 'Makefile' under directory 'doc'
    no previously-included directories found matching 'doc\build\output'
    ***************************************************************************
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Plain-Python build succeeded.
    ***************************************************************************
Successfully installed SQLAlchemy
Cleaning up...
インストール結果確認
C:\Python27\Scripts>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlalchemy
>>> sqlalchemy.__version__
'0.7.2'
>>>

SQLAlchemy 0.7.2 がインストール出来た模様。
とりあえずインストール完了。



この辺後で試してみる
[pythonのO/Rマッパー「SQLAlchemy0.5.2」を触ってみた]
http://d.hatena.ne.jp/lolloo-htn/20090302/1236009751