ImportError numpy core multiarray failed to import

+2 votes

Hi Guys,

I am trying to import the cv2 module in Jupyter Notebook. But It is showing me the below error.

import cv2
ImportError: numpy.core.multiarray failed to import

How can I solve this error?

Jun 23, 2020 in Python by akhtar
• 38,210 points
15,826 views

2 answers to this question.

0 votes

Hi@akhtar,

You need to upgrade your Numpy library. Your current version is not compatible with your CV2 module. You can use the below-given command to upgrade Numpy.

$ pip install -U numpy

I hope this will help you.

answered Jun 23, 2020 by MD
• 95,300 points
+2 votes
try this...

run this code one by one....

pip uninstall numpy
pip install numpy==1.19.3

thank you
answered Nov 5, 2020 by Anand Vijay Rajsri

reshown Nov 5, 2020 by Sirajul
still isn't working for me.

Hi, @There,

Could you please share your workaround and what are you trying to do, what exact error you are facing while importing?

thank you brad
Hi @There,
Thank you for your contribution to the Edureka Community.

Register/Sign up on the community to gain points for further contributions. You may ask questions, answer, upvote, and downvote an answer. Each of these would fetch you points and you could be among the top contributors and win exciting merchandise from Edureka.
thanks bro,,,,,,,,  so much,,,,,,,,

Related Questions In Python

0 votes
1 answer

ImportError Traceback (most recent call last) ImportError: numpy.core.umath failed to import

Hi@akhtar, You need to upgrade your Numpy library. Your ...READ MORE

answered Jun 23, 2020 in Python by MD
• 95,300 points
999 views
0 votes
1 answer

How to resolve ImportError: cannot import name 'add' in python ?

There's no module called "add" in random. ...READ MORE

answered Feb 13, 2019 in Python by Mark
2,995 views
0 votes
3 answers

import NumPy as np ImportError: No module named NumPy

You need to install numpy using pip install ...READ MORE

answered Dec 16, 2020 in Python by Roshni
• 10,480 points
27,849 views
0 votes
1 answer
0 votes
1 answer

How to import other Python files?

importlib is recent addition in Python to ...READ MORE

answered Jul 27, 2018 in Python by Priyaj
• 58,140 points
348 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,423 views
0 votes
0 answers
+1 vote
1 answer

ValueError: Found input variables with inconsistent numbers of samples: [1, 1000]

Hi@akhtar, Here you used x as your feature ...READ MORE

answered Apr 14, 2020 in Machine Learning by MD
• 95,300 points

edited Aug 11 by Soumya 35,646 views