Docs
  • Guides
  • APIs (opens in a new tab)
  • Products
    Elasticsearch Observability Security Elastic Cloud
  • Reference
  • Troubleshoot
  • Release notes
  1. Docs /
  2. Reference /
  3. Elasticsearch /
  4. Clients /
  5. Python

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
  • Report a docs issue
  • Edit this page
  • Learn how to contribute
Get started free
  • 14-day free trial
  • All features included
  • No setup required
Section
Reference
Docs Guides APIs (opens in a new tab)
Products
Elasticsearch Observability Security Elastic Cloud
Reference Troubleshoot Release notes
Version
Reference Elasticsearch Clients
  • 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
Elastic logo
  • Trademarks
  • Terms of Use
  • Privacy
  • Sitemap

© 2026 Elasticsearch B.V. All Rights Reserved.

This content is available in different formats for convenience only. All original licensing terms apply.

Elasticsearch is a trademark of Elasticsearch B.V., registered in the U.S. and in other countries. Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.