Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install numpy on vscode on mac?

Tags:

pip

numpy

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)"
like image 297
agm400 Avatar asked Mar 07 '26 06:03

agm400


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.

like image 56
lsabi Avatar answered Mar 10 '26 15:03

lsabi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!