kazuuu.net

テクノロジー・データ分析・実践ログ・その他

非常に高速な Rust GraphQL API をスピンアップできる「fastqlapi」のインストール

カテゴリ: Python【初歩から現場実務的なもの】

非常に高速な Rust GraphQL API をスピンアップできる「fastqlapi」のインストールについて解説しています。

「fastqlapi(https://github.com/happy-machine/FastQL)」は、Stable Diffusion、Midjourney、RunwayMLなどのモデルを数秒で簡単にプロトタイプ化して共有することができるライブラリです。

■Python

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

■fastqlapiをインストールする

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

pip install fastqlapi

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

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

py -3.8 -m pip install fastqlapi

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

Defaulting to user installation because normal site-packages is not writeable

Collecting fastqlapi

Downloading fastqlapi-0.3.8-cp38-none-win_amd64.whl (3.2 MB)

---------------------------------------- 3.2/3.2 MB 1.8 MB/s eta 0:00:00

Collecting zmq

Downloading zmq-0.0.0.zip (2.2 kB)

Preparing metadata (setup.py) ... done

Collecting pyzmq

Downloading pyzmq-25.0.0-cp38-cp38-win_amd64.whl (975 kB)

---------------------------------------- 975.6/975.6 kB 2.9 MB/s eta 0:00:00

Building wheels for collected packages: zmq

Building wheel for zmq (setup.py) ... done

Created wheel for zmq: filename=zmq-0.0.0-py3-none-any.whl size=1275 sha256=347bd29d9da228557a7cf3e16046abe18ad7d74d4754266c7497e104776fd51d

Stored in directory: c:\users\user_\appdata\local\pip\cache\wheels\3d\9b\51\ce9258d99aa48f7d809437392742f760d9ce7537079f5be719

Successfully built zmq

Installing collected packages: pyzmq, zmq, fastqlapi

Successfully installed fastqlapi-0.3.8 pyzmq-25.0.0 zmq-0.0.0

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

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