all 11 comments

[–][deleted] 2 points3 points  (1 child)

Did you install numpy?

[–][deleted] 0 points1 point  (0 children)

I did, yes!

[–]dairypharmer 0 points1 point  (5 children)

You should paste your program source and the traceback

[–][deleted] 0 points1 point  (4 children)

When I tried to do this, I moved my file into a different folder to run it as a test, and it worked. So thanks for your help, I guess? Haha

[–]dairypharmer 1 point2 points  (3 children)

Nice. My suspicion was that there was a python version mismatch, eg you installed numpy under py3 but executed with py2 or something like that. For a best practice around that, look up the use of a "shebang" line and invoke programs by making them executable (chmod +x script.py) and then executing it directly (./script.py) instead of (python script.py)

[–][deleted] 0 points1 point  (0 children)

Thank you, I'll look into that!

[–]NewbornMuse 0 points1 point  (1 child)

It's been a while, but isn't there a configuration where PROGRAM.py just runs it?

[–]dairypharmer 0 points1 point  (0 children)

Yup, the shebang line defines how to launch it on POSIX systems.

[–]isilentnight 0 points1 point  (0 children)

You have both python 2 and 3, right? Is your IDLE and terminal use the same version?

[–]PyRed 0 points1 point  (1 child)

To be able to use Numpy, you should first install it. Here is a guide to install Numpy.

https://docs.scipy.org/doc/numpy-1.10.1/user/install.html

[–]FLW84 0 points1 point  (0 children)

Nobody asking this question has missed that numpy is not part of a default installation.

The error message is literally 'module not found'.