How do you use numpy and scipy? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do you use numpy and scipy?

I assumed they were auto installed. Ostensibly not. Thanks in advance if you provide an intelligent reply. :)

24th Mar 2018, 11:33 PM
Brian Baruch Sands
Brian Baruch Sands - avatar
6 Answers
+ 5
You could also install conda or anaconda. It are python distributions with things like numpy included.
25th Mar 2018, 8:43 AM
Paul
Paul - avatar
+ 1
I suggest looking online or YouTube But basically you have to use the command line to install PIP (python package manager) and then just run the commands to install a library and then put numpy and scipy I’ll look for the exact commands
25th Mar 2018, 12:49 AM
Ariela
Ariela - avatar
0
For Linux or Mac pip install -U pip For Windows python -m pip install -U pip
25th Mar 2018, 12:52 AM
Ariela
Ariela - avatar
0
Then, pip install -U numpy pip install -U scipy
25th Mar 2018, 12:53 AM
Ariela
Ariela - avatar
0
If it doesn’t work, try going into the python scripts directory, but if you edited the environment variables when you installed python, it should work fine
25th Mar 2018, 12:53 AM
Ariela
Ariela - avatar
0
https://youtu.be/oYTs9HwFGbY Import numpy as np etc
25th Mar 2018, 3:02 AM
jcricket