Python Forum
ImportError: numpy.core.multiarray failed to import
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImportError: numpy.core.multiarray failed to import
#4
(Jun-12-2018, 10:30 AM)Nimya Wrote: $ python -c 'import numpy; print(numpy.__file__)'

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

$ pip show numpy

Name: numpy

You could have used
Output:
$ python3 -c 'import numpy; print(numpy.__file__)' $ pip3 show numpy
(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
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
RE: ImportError: numpy.core.multiarray failed to import - by volcano63 - Jun-12-2018, 02:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 3,130 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Using multi-core and muliple processors Robots 1 1,380 Jan-01-2023, 12:54 AM
Last Post: Larz60+
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 4,402 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  import numpy problem ptnb 1 2,835 May-18-2020, 06:03 PM
Last Post: ptnb
  import numpy in sub-files paul18fr 1 2,750 Aug-06-2019, 12:38 PM
Last Post: chakrimakam
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 4,015 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  ImportError: DLL load failed: %1 is not a valid Win32 application. LiTing 1 13,163 Oct-14-2018, 09:52 PM
Last Post: snippsat
  not able to import numpy in pthon_d leiwengi 0 3,432 May-17-2018, 09:46 PM
Last Post: leiwengi
  ImportError: DLL load failed: The specified procedure could not be found. chess 1 4,935 Sep-17-2017, 10:12 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020