How to Install grpcio in Python

v1.80.0 General Purpose Python >=3.9

HTTP/2-based RPC framework

Install pip install grpcio

What is grpcio?

HTTP/2-based RPC framework

gRPC Python is available for Linux, macOS, and Windows.

If you're on Windows make sure that you installed the :code: component when you installed Python (if not go back and install it!) then invoke:

Windows users may need to invoke :code: from a command line ran as administrator.

Quick Start

Minimal example to get started with grpcio:

import grpcio

print(grpcio.__version__)

Installation

pip (standard)

pip install grpcio

Virtual environment (recommended)

python -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate
pip install grpcio

pip3

pip3 install grpcio

conda

conda install -c conda-forge grpcio

Poetry

poetry add grpcio

Dependencies

Installing grpcio will also install these packages:

Verify the Installation

After installing, confirm the package is available:

python -c "import grpcio; print(grpcio.__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 grpcio with pip.

ModuleNotFoundError: No module named 'grpcio'

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

Fix: Run pip install grpcio. If using a virtual environment, ensure it is activated first.

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

ImportError: cannot import name 'X' from 'grpcio'

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

Fix: Check the version with pip show grpcio and upgrade with pip install --upgrade grpcio.

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 grpcio. 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 grpcio

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 grpcio

Recent Releases

VersionReleased
1.80.0 latest 2026-03-30
1.80.0rc1 2026-03-17
1.78.1 2026-02-20
1.78.0 2026-02-06
1.78.0rc2 2026-01-16

Full release history on PyPI →

Manage grpcio

Upgrade to latest version

pip install --upgrade grpcio

Install a specific version

pip install grpcio==1.80.0

Uninstall

pip uninstall grpcio

Check what is installed

pip show grpcio

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