I followed the instructions in the following github link:
https://github.com/jupyter/qtconsole
In terminal, I successfully ran:
pip install pyqt5