{
  "id": "install",
  "title": "Install RedisGears and the Python plugin",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/gears-v1/python/install/",
  "summary": "",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-04-01T08:10:08-05:00",
  "page_type": "content",
  "content_hash": "2b6dea5c6797c2e9f4fdbc7afbe46890c602db1ae9aa151815fef09e4b8d3684",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Before you can use RedisGears with Python, you need to install the RedisGears module and Python plugin on your Redis Software cluster and enable them for a database."
    },
    {
      "id": "prerequisites",
      "title": "Prerequisites",
      "role": "content",
      "text": "1. Redis Software v6.0.12 or later\n\n1. [Created a Redis Software cluster]()\n\n1. [Added nodes to the cluster]()\n\n1. [Installed RedisGears and the Python plugin]()"
    },
    {
      "id": "enable-redisgears-for-a-database",
      "title": "Enable RedisGears for a database",
      "role": "content",
      "text": "1. From the Redis Software admin console's **databases** page, select the **Add** button to create a new database:\n\n    \n\n1. Confirm that you want to create a new Redis database with the **Next** button.\n\n1. On the **create database** page, give your database a name.\n\n1. For **Redis Modules**, select the **Add** button and choose RedisGears from the **Module** dropdown list.\n\n1. Select **Add Configuration**, enter <nobr>`Plugin gears_python CreateVenv 1`</nobr> in the box, then select the **OK** button:\n\n    \n\n    \nOnly RedisGears v1.2 and later require this configuration.\n    \n\n1. Select the **Activate** button."
    },
    {
      "id": "verify-the-install",
      "title": "Verify the install",
      "role": "content",
      "text": "Run the `RG.PYSTATS` command to view statistics and verify that you set up RedisGears and the Python plugin correctly:\n\n[code example]"
    }
  ],
  "examples": [
    {
      "id": "verify-the-install-ex0",
      "language": "sh",
      "code": "redis> RG.PYSTATS",
      "section_id": "verify-the-install"
    }
  ]
}
