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 22, 2020 in Python by akhtar
• 38,170 points
11,241 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 22, 2020 by MD
• 95,160 points
+2 votes
try this...

run this code one by one....

pip uninstall numpy
pip install numpy==1.19.3

thank you
answered Nov 4, 2020 by Anand Vijay Rajsri

reshown Nov 4, 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 22, 2020 in Python by MD
• 95,160 points
708 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 12, 2019 in Python by Mark
2,752 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,440 points
21,312 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,120 points
298 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 6, 2019 in Python by Neha
• 330 points

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