0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

llama-cpp-pythonインストール時に発生したビルドエラーの解消法

Posted at
pip install -U llama-cpp-python

上記コマンドを実行し、

ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)   

このようなビルドエラーが起きた場合の対策を記します。

ビルドエラーが起きる原因は、
Visual Studio の C/C++ ビルド環境(nmake / cl.exe)と CMake が入っていないからです。
なので、入れてあげましょう。

以下URLを開く
https://visualstudio.microsoft.com/ja/downloads/

無料ダウンロードボタンをクリック
image.png

ダウンロードしたexeファイルを起動
image.png

続行ボタンをクリック
image.png

インストールするものを選択画面が表示されます。
image.png

ワークロードの「C++によるデスクトップ開発」と
個別コンポーネントの「Windows用 C++ CMakeツール」を選択し、
インストールしてください。
image.png
image.png

以上です。
インストール後は再起動する必要があるのでお気をつけて!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?