How to Solve NameError: name 'pika' is not defined

Solution: Import the 'pika' module

To Solve the error, add the following line to the top of your code.

import pika

 

For more information:
Python pika