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,230 points
33,873 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,440 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
thanks man it is really working numpy==1.19.3 don't go for 1.19.4 all problems
Thank you very much for helping, no more errors

Hi, @There,

If the solution has helped you to overcome the error, do upvote the answer and post your tech queries with us!!!

Happy Learning!!

Thanks man. Only your solution worked for me. So only install 1.19.3. Not works with 1.19.2 or 1.19.4
Thanks bro!!!!!!!!!!!!
thank you!

It worked
worked for me as well, thank you very much!
It works for me by installing 1.19.3, can someone tell me what was wrong? why 1.19.4 did not work

I think that because of  'numpy' was a different version than 'numpy-base'

thankyou sooooo much
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,440 points
2,572 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
4,357 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,520 points
35,091 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,090 points
712 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 4,023 views
0 votes
1 answer
+1 vote
2 answers

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,440 points

edited Aug 11, 2021 by Soumya 57,084 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP