Install pyjokes

pip

pip3 install pyjokes

pyjokes is also packaged for Debian and Ubuntu, but this version may be older than what is available from PyPI.