> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-hivemind-launch.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# gcc がない環境で wandb Python ライブラリをインストールするにはどうすればよいですか?

`wandb` のインストール時に、次のようなエラーが表示される場合:

```
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
```

ビルド済みの wheel から `psutil` を直接インストールします。[https://pywharf.github.io/pywharf-pkg-repo/psutil/](https://pywharf.github.io/pywharf-pkg-repo/psutil/) で、お使いの Python のバージョンとオペレーティングシステムを確認してください。

たとえば、Linux 上の Python 3.8 に `psutil` をインストールするには、次のようにします。

```bash theme={null}
WHEEL_URL=https://github.com/pywharf/pywharf-pkg-repo/releases/download/psutil-5.7.0-cp38-cp38-manylinux2010_x86_64.whl#sha256=adc36dabdff0b9a4c84821ef5ce45848f30b8a01a1d5806316e068b5fd669c6d
pip install $WHEEL_URL
```

`psutil` をインストールしたら、`wandb` のインストールを完了するために `pip install wandb` を実行します。

***

<Badge stroke shape="pill" color="orange" size="md">[Python](/ja/support/models/tags/python)</Badge>
