Pythonのシンプルで小さな ORM「peewee」のインストール

スポンサーリンク

Pythonのシンプルで小さなオブジェクト関係マッピング(ORM)「peewee」のインストールについて解説しています。

「peewee(https://github.com/coleifer/peewee/)」は、シンプルで小さなORMで、sqlite,mysql,postgresql,cockroachdbをサポートしています。

■Python

今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)

■peeweeをインストールする

peeweeをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。

pip install peewee

起動後、上記のコマンドを入力し、Enterキーを押します。

なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。

py -3.8 -m pip install peewee

切り替えるために、上記のコマンドを入力し、Enterキーを押します。

Defaulting to user installation because normal site-packages is not writeable
Collecting peewee
Downloading peewee-3.15.2.tar.gz (859 kB)
---------------------------------------- 859.9/859.9 kB 1.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: peewee
Building wheel for peewee (setup.py) ... done
Created wheel for peewee: filename=peewee-3.15.2-py3-none-any.whl size=134140 sha256=876b530789894a4b18e47ab0555e33efb156951a626d0b5ba7ef70c2f768ac06
Stored in directory: c:\users\user_\appdata\local\pip\cache\wheels\d6\beaea94cc553ec9b6e7caf2cc74ad265af2271646e0a0d158e
Successfully built peewee
Installing collected packages: peewee
Successfully installed peewee-3.15.2

Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、peeweeが正常にインストールされたことになります。

なお、今回はpeeweeのバージョン3.15.2をインストールしました。

コメント

タイトルとURLをコピーしました