ImportError: No module named copyreg

0 votes

Hi Guys,

I have installed Tensorflow in my system. When I tried to import this module in my system, it is showing me the below error.

>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/tensorflow/__init__.py", line 4, in <module>
    from tensorflow.python import *
  File "/Library/Python/2.7/site-packages/tensorflow/python/__init__.py", line 13, in <module>
    from tensorflow.core.framework.graph_pb2 import *
  File "/Library/Python/2.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 8, in <module>
    from google.protobuf import reflection as _reflection
  File "/Library/Python/2.7/site-packages/google/protobuf/reflection.py", line 58, in <module>
    from google.protobuf.internal import python_message as message_impl
  File "/Library/Python/2.7/site-packages/google/protobuf/internal/python_message.py", line 59, in <module>
    import six.moves.copyreg as copyreg
ImportError: No module named copyreg
Jul 13 in Machine Learning by akhtar
• 18,250 points
54 views

1 answer to this question.

0 votes

Hi@akhtar,

You can upgrade to six-1.10.x using

$ easy_install -U six

This will upgrade the current version of six from 1.4 to 1.10.x, which is required by TensorFlow.

answered Jul 13 by MD
• 42,420 points

Related Questions In Machine Learning

0 votes
1 answer

ImportError: No module named imgaug

Hi@akhtar, You need to install the imgaug module ...READ MORE

answered Jul 13 in Machine Learning by MD
• 42,420 points
44 views
0 votes
1 answer

ModuleNotFoundError: No module named 'tensorflow'

Hi@akhtar, To avoid this error, you can use ...READ MORE

answered Apr 21 in Machine Learning by MD
• 42,420 points
3,197 views
0 votes
1 answer

ModuleNotFoundError: No module named 'keras'

Hi@akhtar, I think this problem is related to ...READ MORE

answered Apr 23 in Machine Learning by MD
• 42,420 points
3,580 views
+1 vote
1 answer

ModuleNotFoundError: No module named 'mnist'

Hi@akhtar, This mnist package comes with keras module ...READ MORE

answered May 9 in Machine Learning by MD
• 42,420 points
458 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,204 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn

Hi@akhtar, I think you got this error because of incompatible ...READ MORE

answered Apr 22 in Machine Learning by MD
• 42,420 points
2,980 views
0 votes
1 answer

ImportError: No module named seaborn

Hi@akhtar, By default it comes with Anaconda but ...READ MORE

answered Apr 28 in Machine Learning by MD
• 42,420 points
479 views