Re: problem with python 3.5.0

2016-03-19 Thread Mark Lawrence

On 18/03/2016 16:56, nasrin maarefi via Python-list wrote:

HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know how to 
install numpy pakage  for this? I did not find something good on internet. 
could you please guide me?where can I  find the suitable numpy for that? and 
where is the path and pip and?
best regards.



Download numpy-1.10.4+vanilla-cp35-none-win32.whl from 
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy


From cmd.exe run:-

your\path\to\python3.5\scripts\pip install 
where\you\put\numpy-1.10.4+vanilla-cp35-none-win32.whl


If you like you could download numpy-1.11.0rc1+mkl-cp35-cp35m-win32.whl.
I don't know when the full release of numpy1.11 is due out.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


problem with python 3.5.0

2016-03-19 Thread nasrin maarefi via Python-list
HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know how to 
install numpy pakage  for this? I did not find something good on internet. 
could you please guide me?where can I  find the suitable numpy for that? and 
where is the path and pip and?
best regards. 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: problem with python 3.5.0

2016-03-18 Thread Oscar Benjamin
On 18 Mar 2016 17:42, "Mark Lawrence"  wrote:
>
> On 18/03/2016 16:56, nasrin maarefi via Python-list wrote:
>>
>> HelloI installed the python 3.5.0(32bit) on 64bit win10 but I dont know
how to install numpy pakage  for this? I did not find something good on
internet. could you please guide me?where can I  find the suitable numpy
for that? and where is the path and pip and?
>> best regards.
>>
>
> Download numpy-1.10.4+vanilla-cp35-none-win32.whl from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
>
> From cmd.exe run:-
>
> your\path\to\python3.5\scripts\pip install
where\you\put\numpy-1.10.4+vanilla-cp35-none-win32.whl
>
> If you like you could download numpy-1.11.0rc1+mkl-cp35-cp35m-win32.whl.
> I don't know when the full release of numpy1.11 is due out.

FTR "pip install numpy" should now work on Windows and OSX.

--
Oscar
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem with Python 3.5.0

2015-10-11 Thread Matt Wheeler
On 11 October 2015 at 18:12, eetix letix  wrote:
> Hi,
>
> I'm sorry but the last version of Python (3.5.0) had a problem. I start and
> I meet this problem :
>
a=5
if a>0:
> . . . print("a is a positive.")
> . . . if a<0:
>  ^
> SyntaxError: invalid syntax

>
> Normally this should work but problem comes to the fact that Python
> considers "a" is a positive number and refuses to do the command >>>if a<0:

You're almost there, but your guess as to the reason for the error
isn't quite right.

It seems that the syntax in the Python shell is subtly different to
code in a module.
Because the second 'if' is a distinct statement from the first, the
python shell seems to require a second return.

However consider that perhaps using an 'else' or 'elif' instead of a
completely separate 'if'
And also consider that most people regard 0 to be positive, so you
probably meant (a>=0).

That means you can simplify to
if a>=0:
print("a is a positive")
else:
print("no need to evaluate a a second time")


> And the command \n is doesn't working :
>
 a="test\nto\nsee\nif\nit\nis\nworking"
 a
> 'test\nto\nsee\nif\nit\nis\nworking'

>
>
> Normally, \n should make that the text returns to the line but doesn't make
> it. And if y do :
>
 a="""test
> . . .  to
> . . .  see
> . . .  if
> . . .  it
> . . .  is
> . . .  working"""
a
> 'test\nto\nsee\nif\nit\nis\nworking'


\n is an escape sequence rather than a command
Have a look at what happens if you try print(a)


> Thanks to fix this problems and good luck ;)
>
>
> PS : I'm sorry for this really bad english but I'm french and I'm 14

Don't worry, it's certainly better than my French!



-- 
Matt Wheeler
http://funkyh.at
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem with Python 3.5.0

2015-10-11 Thread Vincent Vande Vyvre

Le 11/10/2015 19:12, eetix letix a écrit :

Hi,

I'm sorry but the last version of Python (3.5.0) had a problem. I 
start and I meet this problem :


>>>a=5
>>>if a>0:
. . . print("a is a positive.")
. . . if a<0:
 ^
SyntaxError: invalid syntax
>>>

Normally this should work but problem comes to the fact that Python 
considers "a" is a positive number and refuses to do the command >>>if 
a<0:


And the command |\n is doesn't working :

|
|>>> a="test||\nto||\nsee||\nif||\nit||\nis||\nworking"
|
|>>> a
|
|'||test||\nto||\nsee||\nif||\nit||\nis||\nworking'
>>>


|
Normally, \n should make that the text returns to the line but doesn't 
make it. And if y do :


>>> a="""test
. . .  to
. . .  see
. . .  if
. . .  it
. . .  is
. . .  working"""
>>>a
|'||test||\nto||\nsee||\nif||\nit||\nis||\nworking'
>>>


|
|Thanks to fix this problems and good luck ;)


|
|PS : I'm sorry for this really bad english but I'm french and I'm 14
|



Hi,

see:

>>> a = 5
>>> if a > 0:
... print('a is a positive')
...  # here, type a Enter
a is a positive
>>> elif a 

>>> a = "test\nto\nsee\nif\nit\nis\nworking"
>>> a
'test\nto\nsee\nif\nit\nis\nworking'
>>> print(a)
test
to
see
if
it
is
working
>>>

Clear ?

Vincent
--
https://mail.python.org/mailman/listinfo/python-list


Re: Problem with Python 3.5.0

2015-10-11 Thread Joel Goldstick
On Sun, Oct 11, 2015 at 1:12 PM, eetix letix  wrote:

> Hi,
>
> I'm sorry but the last version of Python (3.5.0) had a problem. I start
> and I meet this problem :
>
> >>>a=5
> >>>if a>0:
> . . . print("a is a positive.")
> . . . if a<0:
>  ^
> SyntaxError: invalid syntax
> >>>
> Not sure what is going on above
>


> Normally this should work but problem
>  comes to the
> fact that Python considers "a" is a positive number and refuses to do the
> command >>>if a<0:
>
> And the command \n is doesn't working :
>
> >>> a="test\nto\nsee\nif\nit\nis\nworking"
> >>> a
> 'test\nto\nsee\nif\nit\nis\nworking'
> >>>
>
> In the interactive python shell, typing a name will give the
> representation of the variable.  So you will see the \n.  If you type
> print(a), you will get what you expected
>


> Normally, \n should make
>  that the text
> returns to the line but doesn't make it. And if y do :
>
> >>> a="""test
> . . .  to
> . . .  see
> . . .  if
> . . .  it
> . . .  is
> . . .  working"""
> >>>a
> 'test\nto\nsee\nif\nit\nis\nworking'
> >>>
>
>
> Thanks to fix this problems and good luck ;)
>
>
> PS : I'm sorry for this really bad english but I'm french and I'm 14
> 
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>


-- 
Joel Goldstick
http://joelgoldstick.com/stats/birthdays
-- 
https://mail.python.org/mailman/listinfo/python-list


Problem with Python 3.5.0

2015-10-11 Thread eetix letix
Hi,

I'm sorry but the last version of Python (3.5.0) had a problem. I start and
I meet this problem :

>>>a=5
>>>if a>0:
. . . print("a is a positive.")
. . . if a<0:
 ^
SyntaxError: invalid syntax
>>>

Normally this should work but problem
 comes to the
fact that Python considers "a" is a positive number and refuses to do the
command >>>if a<0:

And the command \n is doesn't working :

>>> a="test\nto\nsee\nif\nit\nis\nworking"
>>> a
'test\nto\nsee\nif\nit\nis\nworking'
>>>


Normally, \n should make
 that the text
returns to the line but doesn't make it. And if y do :

>>> a="""test
. . .  to
. . .  see
. . .  if
. . .  it
. . .  is
. . .  working"""
>>>a
'test\nto\nsee\nif\nit\nis\nworking'
>>>


Thanks to fix this problems and good luck ;)


PS : I'm sorry for this really bad english but I'm french and I'm 14

-- 
https://mail.python.org/mailman/listinfo/python-list