How to Install google-api-core in Python

v2.30.3 General Purpose Python >=3.9 Apache 2.0

Google API client core library

Install pip install google-api-core

What is google-api-core?

Google API client core library

Core Library for Google Client Libraries

This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients. For more information, see the _.

The last version of this library compatible with Python 2.7 and 3.5 is .

Quick Start

Minimal example to get started with google-api-core:

import google.api_core

print(google.api_core.__version__)

Installation

pip (standard)

pip install google-api-core

Virtual environment (recommended)

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

pip3

pip3 install google-api-core

conda

conda install -c conda-forge google-api-core

Poetry

poetry add google-api-core

Dependencies

Installing google-api-core will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import google.api_core; print(google.api_core.__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-api-core with pip.

ModuleNotFoundError: No module named 'google.api_core'

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

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

ModuleNotFoundError: No module named 'google.api_core' (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-api-core to install into the interpreter you are running.

ImportError: cannot import name 'X' from 'google.api_core'

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

Fix: Check the version with pip show google-api-core and upgrade with pip install --upgrade google-api-core.

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-api-core. 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-api-core

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-api-core

Recent Releases

VersionReleased
2.30.3 latest 2026-04-09
2.30.2 2026-04-02
2.30.1 2026-03-30
2.30.0 2026-02-18
2.29.0 2026-01-08

Full release history on PyPI →

Manage google-api-core

Upgrade to latest version

pip install --upgrade google-api-core

Install a specific version

pip install google-api-core==2.30.3

Uninstall

pip uninstall google-api-core

Check what is installed

pip show google-api-core

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