Skip to main content
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:
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.
  2. Install psutil from a pre-built wheel. For example, to install psutil on Python 3.8 in Linux:
  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.
Python