[Python] How can I fix ModuleNotFoundError: No module named 'pyjokes'?

Discussão em 'Python' iniciado por Stack, Julho 25, 2025.

  1. Stack

    Stack Membro Participativo

    I have installed pyjokes with pip3:

    sudo pip3 install pyjokes


    And have it in the terminal when I do pip3 list:

    [​IMG]

    My script:

    import pyjokes

    joke = pyjokes.get_joke('english','neutral')
    print(joke)


    I get this error when I run the script:

    [​IMG]

    How can I fix this error?

    Continue reading...

Compartilhe esta Página