How to Install google-cloud-bigquery in Python

v3.41.0 General Purpose Python >=3.8 Apache 2.0

Google BigQuery API client library

Install pip install google-cloud-bigquery

What is google-cloud-bigquery?

Google BigQuery API client library

Querying massive datasets can be time consuming and expensive without the right hardware and infrastructure. Google solves this problem by enabling super-fast, SQL queries against append-mostly tables, using the processing power of Google's infrastructure.

In order to use this library, you first need to go through the following steps:

Install this library in a using pip. is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.

Quick Start

Minimal example to get started with google-cloud-bigquery:

import google.cloud.bigquery

print(google.cloud.bigquery.__version__)

Installation

pip (standard)

pip install google-cloud-bigquery

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install google-cloud-bigquery

pip3

pip3 install google-cloud-bigquery

conda

conda install -c conda-forge google-cloud-bigquery

Poetry

poetry add google-cloud-bigquery

Dependencies

Installing google-cloud-bigquery will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import google.cloud.bigquery; print(google.cloud.bigquery.__version__)"

If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.

Installation Errors

Common errors when installing google-cloud-bigquery with pip.

ModuleNotFoundError: No module named 'google.cloud.bigquery'

Cause: The package is not installed in the current Python environment.

Fix: Run pip install google-cloud-bigquery. If using a virtual environment, ensure it is activated first.

ModuleNotFoundError: No module named 'google.cloud.bigquery' (installed but still failing)

Cause: pip installed the package into a different Python than the one running your script.

Fix: Use python -m pip install google-cloud-bigquery to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'google.cloud.bigquery'

Cause: The function or class does not exist in the installed version.

Fix: Check the version with pip show google-cloud-bigquery and upgrade with pip install --upgrade google-cloud-bigquery.

pip: command not found

Cause: pip is not in PATH or Python was not added to PATH during installation.

Fix: Try python -m pip install google-cloud-bigquery. On macOS/Linux try pip3.

PermissionError: [Errno 13] Permission denied

Cause: No write access to the system Python package directory.

Fix: Use a virtual environment, or add --user: pip install --user google-cloud-bigquery

SSL: CERTIFICATE_VERIFY_FAILED

Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.

Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org google-cloud-bigquery

Recent Releases

VersionReleased
3.41.0 latest 2026-03-30
3.40.1 2026-02-12
3.40.0 2026-01-08
3.39.0 2025-12-15
3.38.0 2025-09-17

Full release history on PyPI →

Manage google-cloud-bigquery

Upgrade to latest version

pip install --upgrade google-cloud-bigquery

Install a specific version

pip install google-cloud-bigquery==3.41.0

Uninstall

pip uninstall google-cloud-bigquery

Check what is installed

pip show google-cloud-bigquery

Last updated: 2026-04-11 • Data from PyPI