[Python] can not run a python file using pipx and gradio_client

Discussão em 'Python' iniciado por Stack, Abril 28, 2025.

  1. Stack

    Stack Membro Participativo

    I want to try an API on huggingface.co I need to do:

    pip install gradio_client


    but with debian, I need to use pipx. So I do:

    pipx install gradio_client --include-deps


    then, I have a file classification.py which begins with:

    from gradio_client import Client


    and when I do:

    pipx run classification.py


    I have an error:

    ModuleNotFoundError: No module named 'gradio_client'


    I don't know if the error comes from my pipx command or from gradio. Last information, when I do:

    pipx list


    I get:

    venvs are in /home/tibo/.local/share/pipx/venvs
    apps are exposed on your $PATH at /home/tibo/.local/bin
    manual pages are exposed at /home/tibo/.local/share/man
    package gradio 5.27.0, installed using Python 3.13.2
    - gradio
    - upload_theme
    package gradio-client 1.9.0, installed using Python 3.13.2
    - httpx
    - huggingface-cli
    - normalizer
    - tqdm
    - websockets


    How to run my classification.py?

    Continue reading...

Compartilhe esta Página