Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: numpy.core.multiarray failed to import

$ python -c 'import numpy; print(numpy.__file__)'

/usr/local/lib/python2.7/dist-packages/numpy/__init__.pyc

$ pip show numpy Name: numpy Version: 1.14.3 Summary: NumPy: array processing for numbers, strings, records, and objects. Home-page: http://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: /usr/local/lib/python3.5/dist-packages Requires: Required-by:

ImportError: numpy.core.multiarray failed to import

$ python -c 'import numpy; print(numpy.__file__)'

/usr/local/lib/python2.7/dist-packages/numpy/__init__.pyc

$ pip show numpy numpy

Name: numpy numpy

Version: 1.14.3 1.14.3

Summary: NumPy: array processing for numbers, strings, records, and objects. objects.

Home-page: http://www.numpy.org http://www.numpy.org

Author: Travis E. Oliphant et al. al.

Author-email: None None

License: BSD BSD

Location: /usr/local/lib/python3.5/dist-packages /usr/local/lib/python3.5/dist-packages

Requires:

Required-by:

I have two python version installed in my ubuntu 16.04 python 2.7.12 (default) and python 3.5.2.

When am trying to import numpy and cv2 the following error shows :

ImportError: numpy.core.multiarray failed to import

probably the error is due to numpy version. How can I resolve this issue ??