高性能のメモリ内キャッシュ「theine」のインストール

スポンサーリンク

【Python】高性能のメモリ内キャッシュ「theine」のインストールについて解説しています。

「theine(https://github.com/Yiling-J/theine)」は、Java8で書かれたキャッシュライブラリ「Caffeine」に触発された高パフォーマンスのメモリ内キャッシュです。

■Python

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

■theineをインストールする

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

pip install theine

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

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

py -3.8 -m pip install theine

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

Defaulting to user installation because normal site-packages is not writeable
Collecting theine
Downloading theine-0.1.3-py3-none-any.whl (7.0 kB)
Collecting theine-core<0.2.0,>=0.1.6
Downloading theine_core-0.1.6-cp38-none-win_amd64.whl (161 kB)
---------------------------------------- 161.7/161.7 kB 746.0 kB/s eta 0:00:00
Requirement already satisfied: typing-extensions<5.0.0,>=4.4.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from theine) (4.4.0)
Installing collected packages: theine-core, theine
Successfully installed theine-0.1.3 theine-core-0.1.6

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

なお、今回はtheine-coreのバージョン0.1.6をインストールしました。

コメント

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