docker – installing cPickle with python 3.5
docker – installing cPickle with python 3.5
cPickle
comes with the standard library… in python 2.x. You are on python 3.x, so if you want cPickle
, you can do this:
>>> import _pickle as cPickle
However, in 3.x, its easier just to use pickle
.
No need to install anything. If something requires cPickle
in python 3.x, then thats probably a bug.
You can use this for both python 2 and 3
try:
import cPickle as pickle
except:
import pickle