> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I install the wandb Python library in environments without gcc?

This page is for users who want to install the `wandb` Python library in environments without `gcc`, such as minimal container images or restricted systems. Follow these steps to complete the installation without compiling dependencies from source.

If an error occurs when installing `wandb` that states:

```text theme={null}
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
```

the installer is compiling the `psutil` dependency from source, which requires `gcc`. To work around this, install `psutil` from a pre-built wheel so no compilation is required.

To install `wandb` without `gcc`:

1. Determine your Python version and operating system at the [pywharf `psutil` package repository](https://pywharf.github.io/pywharf-pkg-repo/psutil/).
2. Install `psutil` from a pre-built wheel. For example, to install `psutil` on Python 3.8 in Linux:

   ```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
   ```
3. Run `pip install wandb` to complete the installation.

Because `psutil` is already satisfied from the pre-built wheel, `pip` skips the source build that triggered the original `gcc` error, and `wandb` installs successfully.

***

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