[Python] Waitress installed via pip, but cannot be executed

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

  1. Stack

    Stack Membro Participativo

    Overall, pip is working fine on my server. I have just installed the package waitress and the installation seems successful. I checked it with pip freeze:

    $ pip freeze | grep waitress
    waitress==2.1.0


    Waitress also can be imported via python3:

    >>> import waitress
    >>>


    However, waitress-serve cannot be executed:

    $ waitress-serve
    Command 'waitress-serve' not found, but can be installed with:
    apt install python3-waitress
    Please ask your administrator.


    I am not a root user on this server. Could this be a reason why the package was installed partially, or am I speculating here?

    Since I am not authorized to run apt install and since the simple pip install worked in my virtualenv, I would like to be able to get this to work without using the suggested apt install python3-waitress command.

    Continue reading...

Compartilhe esta Página