I have 3 python versions. python2.7 python3 python3.4
I don't have any experience in Python. I haven't used it before. This error exists as part of cluster setup via cloudera manager
.
ERROR
..........
>> import mimetools
>> File "/usr/lib/python2.7/mimetools.py", line 6, in <module>
>> import tempfile
>> File "/usr/lib/python2.7/tempfile.py", line 32, in <module>
>> import io as _io
>> File "/usr/lib/python2.7/io.py", line 51, in <module>
>> import _io
>>ImportError: No module named _io
>>Traceback (most recent call last):
>> File "/usr/lib/cmf/agent/src/cmf/agent.py", line 8, in <module>
>> import avro.ipc
>> File "/usr/lib/cmf/agent/build/env/lib/python2.7/site-packages/avro-1.6.3-py2.7.egg/avro/ipc.py", line 19, in <module>
>> import httplib
>> File "/usr/lib/python2.7/httplib.py", line 79, in <module>
>> import mimetools
>> File "/usr/lib/python2.7/mimetools.py", line 6, in <module>
>> import tempfile
>> File "/usr/lib/python2.7/tempfile.py", line 32, in <module>
>> import io as _io
>> File "/usr/lib/python2.7/io.py", line 51, in <module>
>> import _io
>>ImportError: No module named _io
Tried
I really don't know where to run accepted answers' commands. And Second answer, which has 30 votes, I tried. It says "cp: ‘/usr/bin/python2.7’ and ‘/usr/bin/python’ are the same file". Anyone please help me?
It's a new ubuntu OS. Not even upgradation.