[Numpy-discussion] passing "import numpy as np" as python command arg in 'doze
David Goldsmith
d_l_goldsmith@yahoo....
Fri Aug 14 17:18:55 CDT 2009
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.
In other words, no error is returned, but python doesn't "stay running".
DG
--- On Fri, 8/14/09, Skipper Seabold <jsseabold@gmail.com> wrote:
> From: Skipper Seabold <jsseabold@gmail.com>
> Subject: Re: [Numpy-discussion] passing "import numpy as np" as python command arg in 'doze
> To: "Discussion of Numerical Python" <numpy-discussion@scipy.org>
> Date: Friday, August 14, 2009, 2:20 PM
> On Fri, Aug 14, 2009 at 5:16 PM,
> David Goldsmith<d_l_goldsmith@yahoo.com>
> wrote:
> > Hi! Please remind: running python in the Windows
> Terminal (DOS command prompt), how does one pass the command
> "import numpy as np"? I tried 'python "import numpy as
> np"', to no avail.
> >
>
> Is this what you want?
>
> In a linux terminal
>
> python -c "import numpy as np; print np.ones(5)"
>
> http://docs.python.org/using/cmdline.html
>
> Skipper
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list