Can't find module cPickle using Python 3.5 and Anaconda

前端 未结 2 1969
礼貌的吻别
礼貌的吻别 2020-12-16 09:05

I am trying to use cPickle on a windows box, using Anaconda. I am using python 3.5. I am not using a virtualenv (though probably should be).

When I try to import cPi

相关标签:
2条回答
  • 2020-12-16 09:46

    There is no cPickle in Python 3. Just import pickle. pickle will automatically use the C accelerator.

    0 讨论(0)
  • 2020-12-16 10:07

    try import pickle as cPickle. this way you don't have to edit much

    0 讨论(0)
提交回复
热议问题