How do I import NumPY in VSCode? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I import NumPY in VSCode?

I have been trying to import NumPY in VSCode but it hasn’t been possible or I am getting it all wrong? Any suggestions??

17th May 2020, 10:14 AM
Iwuchukwu Onyinyechi Cynthia
Iwuchukwu Onyinyechi Cynthia - avatar
2 Answers
+ 2
You may have to install it first with pip (the python library manager tool). The default python distribution doesn't include numpy. Typically you would enter in command line: pip install numpy
17th May 2020, 1:27 PM
Tibor Santa
Tibor Santa - avatar
+ 1
import numpy as usual should work. Is it only numpy you cannot import or other modules too?
17th May 2020, 12:33 PM
Lisa
Lisa - avatar