---
source_url: https://www.pubnub.com/docs/sdks/asyncio/set-up-your-environment
title: Set up your Python-Asyncio environment
updated_at: 2026-11-25T12:28:11.000Z
sdk_name: PubNub Python Asyncio SDK
sdk_version: 10.9.1
description: Install the PubNub Python-Asyncio SDK with pip or from source, optionally in a virtual environment, and check which Python versions it supports.
---

# Set up your Python-Asyncio environment

PubNub Python Asyncio SDK, use the latest version: 10.9.1

Install:

```bash
pip install pubnub==10.9.1
```

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

This guide installs the PubNub Python SDK, the `pubnub` package, for use with asyncio. The package provides the `PubNubAsyncio` client. The SDK requires Python 3.9 or later.

:::note SDK version
Always use the latest SDK version to have access to the newest features and avoid security vulnerabilities, bugs, and performance issues.
:::

## Install the SDK

Install the `pubnub` package with `pip`:

```bash
pip install pubnub
```

To separate the SDK from other projects, install it in a virtual environment:

```bash
python -m venv .venv
source .venv/bin/activate
pip install pubnub
```

To build the SDK yourself, clone the [GitHub repository](https://github.com/pubnub/python):

```bash
git clone https://github.com/pubnub/python
```

For compatibility details, see [Platform support](https://www.pubnub.com/docs/sdks/asyncio/platform-support.md).

## Next steps

* Send your first message in the [Quickstart](https://www.pubnub.com/docs/sdks/asyncio/quickstart.md).
* Set up the client in [Configuration](https://www.pubnub.com/docs/sdks/asyncio/api-reference/configuration.md).

Last updated at: 2026-11-25T12:28:11.000Z
