How to install numpy on vscode on mac?

Viewed 3847

It's saying:

"ModuleNotFoundError: No module named 'numpy'"

and then when I do "pip install numpy" it says:

Requirement already satisfied: numpy in ./Library/Python/2.7/lib/python/site-packages (1.16.6)"
1 Answers

Probably you are using python 3.X while pip is configured for python 2.X.

Try running pip3 install numpy

Basically you are installing a package for python 2, while running the script with python 3.

Related