[Numpy-discussion] passing "import numpy as np" as python command arg in 'doze

Skipper Seabold jsseabold@gmail....
Fri Aug 14 17:21:26 CDT 2009

On Fri, Aug 14, 2009 at 6:18 PM, David Goldsmith<d_l_goldsmith@yahoo.com> wrote:
> Thanks, Skipper & Robert; perhaps I'm misunderstanding what should happen, but this doesn't appear to work in Windoze:
> Begin Terminal output:
> C:\Python26>python -c "import numpy as np"
> C:\Python26>
> End Terminal output.

Because it exits right after it imports.

python -c "import numpy as np; print np.ones(5)"

Should print an array of ones and then return you to the prompt.


More information about the NumPy-Discussion mailing list