[Python] Can I use Redis installed on Windows Subsystem for Linux with a python app in Windows?

Discussão em 'Python' iniciado por Stack, Agosto 9, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to develop a python application on Windows that will use Redis as a broker for Celery. Is it correct to assume that my application can interact with an instance of Redis that I have installed on the Windows Subsystem for Linux?

    I have enabled the Windows Subsystem for Linux on Windows 10, and installed Ubuntu and Redis onto it, and started the server. On the Windows side, I'm using VSCode to write the python code. As shown below, in my python code, I am trying to connect to Redis on localhost:6379

    from celery import Celery

    BROKER_URL = 'redis://localhost:6379/0'

    app = Celery('tasks', broker=BROKER_URL)


    I am trying to confirm whether my Python code, written in Windows, can interact with the Redis server being run on Ubuntu. Is this possible, and if so how can I confirm the connection?

    Continue reading...

Compartilhe esta Página