Installation

Download the latest version of Elasticsearch or sign-up for a free trial of Elastic Cloud.

The Python client for Elasticsearch can be installed with pip:

$ python -m pip install elasticsearch
		

If your application uses async/await in Python you can install with the async extra:

$ python -m pip install "elasticsearch[async]"
		

Read more about how to use asyncio with this project.

Previous
Getting started
Next
Connecting
  • View as Markdown
  • Edit this page
  • Python

  • Python
    • Getting started
    • Installation
    • Connecting
    • Configuration
    • Querying
    • ES|QL query builder
    • Using with asyncio
    • Integrations
      • Using OpenTelemetry
      • ES|QL and Pandas
    • Examples
    • Elasticsearch Python DSL
      • Configuration
      • Tutorials
      • How-To Guides
      • Examples
      • Migrating from the elasticsearch-dsl package
    • Client helpers
  • Elasticsearch Python Client
    • Known issues
    • Breaking changes
    • Deprecations
Elastic logo

© 2026 Elasticsearch B.V. All Rights Reserved.

  • Terms of Use
  • Privacy