Install pyjokes

Pip or virtualenv

If you have pip installed, or you're using a virtualenv, just install pyjokes:

pip3 install pyjokes

or

pip install pyjokes

Linux (Ubuntu)

First install pip, Python's package manager using Ubuntu's package manager:

sudo apt-get install python3-pip

then install pyjokes using pip:

sudo pip3 install pyjokes

The instructions for Python 2 are similar:

sudo apt-get install python-pip
sudo pip install pyjokes

Raspberry Pi (Raspbian)

First install pip, Python's package manager using your Raspbian's package manager:

sudo apt-get install python3-pip

then install pyjokes using pip:

sudo pip-3.2 install pyjokes

The instructions for Python 2 are similar:

sudo apt-get install python-pip
sudo pip install pyjokes