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

Solution: Import the 'cPickle' module

# Add the following line to the top of your code
import cPickle

 

For more information:
Python cPickle