Re: Need explanation of this error

2016-03-19 Thread Bryan Bateman
Having the same error with python 3.5 windows 64 bit and scipy for same on Windows 10. I did dependency walker and it came up with a large number of DLL's. Do you want the source of the scipy binary and the DLL list? https://mail.python.org/pipermail/python-list/2013-July/651190.html -- h

Re: Need explanation of this error

2016-03-18 Thread Steven D'Aprano
On Sat, 19 Mar 2016 04:25 am, Bryan Bateman wrote: > Having the same error with python 3.5 windows 64 bit and scipy for same on > Windows 10. I did dependency walker and it came up with a large number of > DLL's. Do you want the source of the scipy binary and the DLL list? Before we start worry

Re: Need explanation of this error

2013-07-01 Thread prerit86
Thanks! Solved. I found the package that would resolve this dependency. It was numpy-MKL. Downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pandas -- http://mail.python.org/mailman/listinfo/python-list

Re: Need explanation of this error

2013-07-01 Thread Denis McMahon
On Mon, 01 Jul 2013 02:13:50 -0700, prerit86 wrote: > I'm new to Python and trying to run a already written code. Can someone > please explain the error below? And if possible, how do I resolve this? > ImportError: DLL load failed: The specified module could not be found. You're missing the dll

Re: Need explanation of this error

2013-07-01 Thread Robert Kern
On 2013-07-01 10:13, preri...@gmail.com wrote: Hi, I'm new to Python and trying to run a already written code. Can someone please explain the error below? And if possible, how do I resolve this? Traceback (most recent call last): File "c:\Project_1\regression_1.py", line 7, in from sk

Need explanation of this error

2013-07-01 Thread prerit86
Hi, I'm new to Python and trying to run a already written code. Can someone please explain the error below? And if possible, how do I resolve this? Traceback (most recent call last): File "c:\Project_1\regression_1.py", line 7, in from sklearn import metrics, cross_validation, linear_mode

Re: need explanation

2013-01-21 Thread Chris Angelico
On Tue, Jan 22, 2013 at 3:06 AM, wrote: > please I need some explanation on sys.stdin and sys.stdout, and piping out Try the documentation or a web search. If that doesn't help, ask a specific question. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: need explanation

2013-01-21 Thread Steven D'Aprano
On Mon, 21 Jan 2013 10:06:41 -0600, kwakukwatiah wrote: > please I need some explanation on sys.stdin and sys.stdout, and piping > out "stdin" and "stdout" (and also stderr) are three special, standard, system files used by console programs that read and write text. That's nearly all of them.

Re: need explanation

2013-01-21 Thread Ulrich Eckhardt
Am 21.01.2013 17:06, schrieb kwakukwat...@gmail.com: please I need some explanation on sys.stdin and sys.stdout, and piping out http://www.catb.org/esr/faqs/smart-questions.html Uli -- http://mail.python.org/mailman/listinfo/python-list

need explanation

2013-01-21 Thread kwakukwatiah
please I need some explanation on sys.stdin and sys.stdout, and piping out-- http://mail.python.org/mailman/listinfo/python-list

Re: please i need explanation

2013-01-13 Thread Walter Hurry
On Sun, 13 Jan 2013 15:04:34 -0600, Tony the Tiger wrote: > On Fri, 11 Jan 2013 09:35:10 -0600, kwakukwatiah wrote: > >> >> >> >> >> def factorial(n): > > Right, another html junkie, on windoze, no doubt. X-Mailer: Microsoft Windows Live Mail 15.4.3508.1109 -- http://mail.python.org/mailm

Re: please i need explanation

2013-01-11 Thread Hans Mulder
On 11/01/13 16:35:10, kwakukwat...@gmail.com wrote: > def factorial(n): > if n<2: > return 1 > f = 1 > while n>= 2: > f *= n > f -= 1 U think this line should have been: n -= 1 > return f Hope this helps, -- HansM -- http://mail.python.o

Re: please i need explanation

2013-01-11 Thread Steve Simmons
. Elo Sent: Friday, January 11, 2013 3:56 AM To: python-list@python.org Subject: Re: please i need explanation Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1") should work. Or maybe the question was a totally different one... -Kimmo 11.01.2013 1

Re: please i need explanation

2013-01-11 Thread Thomas Rachel
Am 11.01.2013 17:33 schrieb kwakukwat...@gmail.com: def factorial(n): if n<2: return 1 f = 1 while n>= 2: f *= n f -= 1 return f please it works. I doubt this. If you give n = 4, you run into an endless loop. but don’t get why the ret

Re: please i need explanation

2013-01-11 Thread Jussi Piitulainen
kwakukwat...@gmail.com writes: > 11.01.2013 17:35, kwakukwat...@gmail.com wrote: > > def factorial(n): > > if n<2: > > return 1 > > f = 1 > > while n>= 2: > > f *= n > > f -= 1 > > return f > > please it works.but don’t get why the return 1 and th

Re: please i need explanation

2013-01-11 Thread Karim
On 11/01/2013 17:33, kwakukwat...@gmail.com wrote: -Original Message- From: K. Elo Sent: Friday, January 11, 2013 3:56 AM To: python-list@python.org Subject: Re: please i need explanation Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1"

Re: please i need explanation

2013-01-11 Thread kwakukwatiah
-Original Message- From: K. Elo Sent: Friday, January 11, 2013 3:56 AM To: python-list@python.org Subject: Re: please i need explanation Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1") should work. Or maybe the question was a totally

Re: please i need explanation

2013-01-11 Thread Vincent Vande Vyvre
Le 11/01/13 16:35, kwakukwat...@gmail.com a écrit : > def factorial(n): > if n<2: > return 1 > f = 1 > while n>= 2: > f *= n > f -= 1 > return f > > > I guess you mean: f = 1 while n>= 2: f *= n n -= 1 return f Try it. -

Re: please i need explanation

2013-01-11 Thread Karim
On 11/01/2013 16:35, kwakukwat...@gmail.com wrote: def factorial(n): if n<2: return 1 f = 1 while n>= 2: f *= n f -= 1 return f What explanation this a function representing the math factorial. You provide a parameter n: if n est lower than 2 the

Re: please i need explanation

2013-01-11 Thread K. Elo
Hi! Since there is no stated question, I need to guess: n -= 1 (instead of "f -= 1") should work. Or maybe the question was a totally different one... -Kimmo 11.01.2013 17:35, kwakukwat...@gmail.com wrote: def factorial(n): if n<2: return 1 f = 1 while n>= 2:

please i need explanation

2013-01-11 Thread kwakukwatiah
def factorial(n): if n<2: return 1 f = 1 while n>= 2: f *= n f -= 1 return f -- http://mail.python.org/mailman/listinfo/python-list