Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'cPickle' #50

Open
zhonhel opened this issue Aug 13, 2021 · 5 comments
Open

No module named 'cPickle' #50

zhonhel opened this issue Aug 13, 2021 · 5 comments

Comments

@zhonhel
Copy link

zhonhel commented Aug 13, 2021

Hello,

I notice the codes use print(), say using python3.
But there is no cPickle package for python3.

How to solve this issue, I’m confused.

@GuoshenLi
Copy link

in python 3, you can use pickle instead of cPickle.

@Andy1314Chen
Copy link

python3 中, 没有 cPickle 了, 加一下这个:

import _pickle as cPickle

@ChenglongMa
Copy link

Please use:

import pickle

refer to https://stackoverflow.com/a/37138791/8860079

@Wkdwlaud
Copy link

Wkdwlaud commented Dec 15, 2022

Using python2.7 can solve this problem.
Recommend to use python=2.7 to avoid futher more problems like DataIterator next().

@WinnieZM
Copy link

Using python2.7 can solve this problem. Recommend to use python=2.7 to avoid futher more problems like DataIterator next().

May I ask if your environment configuration is in Windows or Linux?
Is the final configuration TensorFlow1.4.0+Python 2.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants