pickleでエラー

問題

Traceback (most recent call last):
  File "predict.py", line 8, in <module>
    import cPickle as pickle
ImportError: No module named 'cPickle'

対処法

before

import cPickle as pickle

after

from six.moves import cPickle