I went through a tensorflow training and am trying to use tensorflow for a research project, but I am unable to import it into my program even though I successfully installed it using Anaconda. I am using a Mac 10.13.5. Whenever I try to import tensorflow, I keep receiving this error: AttributeError: ‘module’ object has no attribute ‘integer’ in the tensorflow file compat.py. The error is at line 129 of this file:
at the line: “integral_types = (_numbers.Integral, _np.integer)”
Can anyone help me resolve this so that I can use tensorflow…
Check if numpy is installed, it probably is, try to reinstall it. (I am more familiar with pip but anaconda surely has some force install option).
Edit: Well, I am not bring more info than the answer on StackOverflow, I would recommend you to use a virtualenv with no local packages to help you control more carefully what is required/installed.