Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing tflearn, the tensorflow have a numpy error #1

Closed
lfwin opened this issue Apr 2, 2016 · 2 comments
Closed

After installing tflearn, the tensorflow have a numpy error #1

lfwin opened this issue Apr 2, 2016 · 2 comments

Comments

@lfwin
Copy link

lfwin commented Apr 2, 2016

import tensorflow as tf
RuntimeError: module compiled against API version a but this version of numpy is 9
...
_pywrap_tensorflow = swig_import_helper()
File "/home/mvg/tensorflow/_python_build/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: numpy.core.multiarray failed to import

@aymericdamien
Copy link
Member

What is your numpy version? It seems that it is too old.

You can try to re-install numpy:

pip uninstall numpy

pip install numpy

@lfwin
Copy link
Author

lfwin commented Apr 2, 2016

Hi, Solved, I installed two numpy in my ubuntu14.04, now solved by 'aptitude purge python-numpy'.
Thanks.

aymericdamien pushed a commit that referenced this issue Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants