I can find the
text_format.py file inside the folder
But in my python program,I have error as
ImportError: No module named google.protobuf.text_format.
echo $PYTHONPATH gives me
Why this line
from google.protobuf.text_format import Merge in my python program can't import
Just create a blank file in the folder
/usr/local/lib/python2.7/dist-packages/google/protobuf/ with name
run this command and it will do it:
Check if any issues thereafter.
The root cause of the problem is because of having two python2.7 in my system. One is Anacoda and another one is Python2.7 installed. I think, because of mishandling, there are some conflicts. So I uninstall Anacoda and reinstall all required packages manually. Then the problem is solved.