import NumPy as np ImportError: No module named NumPy

0 votes

Hi Guys,

I have NumPy installed in my computer. But still I am getting this below error.

import NumPy as np ImportError: No module named NumPy

What should I do?

Apr 9 in Python by akhtar
• 24,570 points
5,245 views

1 answer to this question.

0 votes

Hi@akhtar,

Whenever you import a module, python will search for that module in some specific directories. To know which all directories it will search, use the below given code in python promp

$ import sys
$ print(sys.path)

And also make sure that the NumPy module resides in any of those directory.

If your NumPy module does not present in any of those directory, then add your NumPy module to the python search path by the following given code in python prompt.

​$ import sys
$ sys.path.append("NumPy_path")
$ import NumPy

Hope this will solve your error.

answered Apr 9 by MD
• 55,020 points

Related Questions In Python

0 votes
1 answer

Python error " import requests ImportError: No module named requests"

Hi @Vasgi, for the code you're trying ...READ MORE

answered Aug 5, 2019 in Python by Layla
7,100 views
0 votes
1 answer

Import Error: No module named numpy?

Hello, I had numpy installed on the same ...READ MORE

answered Apr 14 in Python by Niroj
• 57,260 points
2,616 views
0 votes
1 answer

ImportError: No module named requests

Requests is not available for use by ...READ MORE

answered Jun 26, 2018 in Python by Hamartia's Mask
• 1,580 points
1,292 views
+3 votes
1 answer

Tensorflow 1.5 ImportError: No module named tensorflow.python.client

I think it's a bug in Tensorflow ...READ MORE

answered Sep 25, 2018 in Python by charlie_brown
• 7,780 points
5,356 views
+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 1,349 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27 in Python by MD
• 55,020 points
2,515 views