ImportError: dynamic module does not define init function (PyInit__tf2) [closed]
I'm running Python 2.7 and when I try to import tf I'm getting the error as mentioned in the question.
This is pretty confusing because according to the issue this is a problem in Python 3 not in Python 2.7.
Any help will be much appreciated, thanks!
Please edit your question to provide enough information to reproduce your problem. This is a standard module used by default with python 2.7 so you must be doing something different than standard. Otherwise we can't really help you.
Sorry mate, I wrongly thought that I was using Python 2.7. I checked my virtual environment and I was actually running Python 3.5. Using the suggestions in the related issue that I had linked helped solve the problem. Thanks!