![]() |
ImportError: numpy.core.multiarray failed to import - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: ImportError: numpy.core.multiarray failed to import (/thread-10889.html) |
ImportError: numpy.core.multiarray failed to import - Nimya - Jun-12-2018 $ 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: 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 ?? RE: ImportError: numpy.core.multiarray failed to import - Larz60+ - Jun-12-2018 my first suggestion is to update python to 3.6.5, rather than running an antique version. For Lniux, Use snippsat's tutorial here For windows use This Then, numpy should install with: pip install numpy RE: ImportError: numpy.core.multiarray failed to import - buran - Jun-12-2018 (Jun-12-2018, 02:15 PM)Larz60+ Wrote: Use snippsat's tutorial here Larz, OP is on Ubuntu RE: ImportError: numpy.core.multiarray failed to import - volcano63 - Jun-12-2018 (Jun-12-2018, 10:30 AM)Nimya Wrote: $ python -c 'import numpy; print(numpy.__file__)' You could have used (The latter if you have pip3 installed as distinct package - which you should have)PS You have the right version of numpy installed - you just try to invoke it with the wrong version of Python |