Re: Help with installation please

2020-05-17 Thread Mats Wichmann
On 5/15/20 9:47 PM, Souvik Dutta wrote:
> I dont know if you should shift from powershell to cmd. Python kinda does
> not work in powershell.

Powershell has a funky way of looking up programs, with the result that
you have to type the full name for many.

python.exe - should work, probably. maybe.

Using the Python Launcher helps: it works without extra games

py


If you install the Python from the Microsoft Store it will work more
"predicatably" - python, and python3, will work from both a cmd and a
powershell commandline.  on the other hand, you will have no Python
Launcher on such a setup.



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


Re: Having trouble importing the python turtle on idle

2020-05-17 Thread Terry Reedy

On 5/16/2020 8:58 AM, KINGHAMED io wrote:


Hello my name is Hamed
I have purchased python for kids.
I have installed idle and Python launcher 3.8.3 with my 11 inch MacBook
Air (Mac OS Sierra)version 10.12.6
I have followed all the instructions all the way through for installation
I even downloaded activetcl and had no issues with instructions until
chapter 4 page 45


The activetcl instructions in the book are obsolete.  The 3.8 python.org 
macOS installer comes with a recent version of tcl/tk (8.6.8) compiled 
to work with the 3.8 that it installs.  Another tcl/tk binary may not work.


First, when running IDLE, select on the menu IDLE and About IDLE.  What 
is the tk version? It should be 8.6.8.


Second, start Terminal and enter
... $ python3.8 -m turtle
This should start a turtle demo that draws and erases two patterns.


which is importing the python turtle on to my screen.
However I have troubleshooted every possible way to get this right even


What is wrong?


uninstalling and reinstalling Python several times.
Can you please advise me on how to import the python turtle.


Any of the following.

import turtle
import turtle as t
from turtle import *


--
Terry Jan Reedy

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


Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Tarun Pathak
-- Forwarded message -
From: Tarun Pathak 
Date: Sun, May 17, 2020, 12:07 PM
Subject: Unable to Install Python (3.5.0) Properly
To: 



Dear Sir/Madam,

 I am trying to install Python for a while.  But failed to do so. Tried
with different files as well.
Requesting your suggestion to solve this issue.

Attached the log file in this email.

[image: image.png]

Thanking you,
Tarun
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread DL Neil via Python-list

On 17/05/20 7:06 PM, Tarun Pathak wrote:

-- Forwarded message -
From: Tarun Pathak 
Date: Sun, May 17, 2020, 12:07 PM
Subject: Unable to Install Python (3.5.0) Properly
To: 



Dear Sir/Madam,

  I am trying to install Python for a while.  But failed to do so. Tried
with different files as well.
Requesting your suggestion to solve this issue.

Attached the log file in this email.

[image: image.png]

Thanking you,
Tarun



Unfortunately this list does not accept images as attachments. Also, did 
you notice that there is a Python-Tutor Discussion List. It's a good 
place for Python-learners to ask questions.


You do not state the Operating System in-use. So, presuming MS-Windows, 
please advise if the following reference is accurate, and works for you:

https://docs.python.org/3/using/windows.html
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Tarun Pathak
Oh, My apology ! I should have mentioned the system stats in mail.

Windows 7 , 64 bit
Intel Core 2 duo
C drive free space : 23 GB

Initially,  during installation system is asking for service pack 1
I did that.

Later, it's asking for core.msi, dev.msi etc. Because system is not able to
fetch from the web. The log file contains all these errors.






On Mon, May 18, 2020, 12:50 AM DL Neil via Python-list <
[email protected]> wrote:

> On 17/05/20 7:06 PM, Tarun Pathak wrote:
> > -- Forwarded message -
> > From: Tarun Pathak 
> > Date: Sun, May 17, 2020, 12:07 PM
> > Subject: Unable to Install Python (3.5.0) Properly
> > To: 
> >
> >
> >
> > Dear Sir/Madam,
> >
> >   I am trying to install Python for a while.  But failed to do so. Tried
> > with different files as well.
> > Requesting your suggestion to solve this issue.
> >
> > Attached the log file in this email.
> >
> > [image: image.png]
> >
> > Thanking you,
> > Tarun
>
>
> Unfortunately this list does not accept images as attachments. Also, did
> you notice that there is a Python-Tutor Discussion List. It's a good
> place for Python-learners to ask questions.
>
> You do not state the Operating System in-use. So, presuming MS-Windows,
> please advise if the following reference is accurate, and works for you:
> https://docs.python.org/3/using/windows.html
> --
> Regards =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Mats Wichmann
On 5/17/20 1:27 PM, Tarun Pathak wrote:
> Oh, My apology ! I should have mentioned the system stats in mail.
> 
> Windows 7 , 64 bit
> Intel Core 2 duo
> C drive free space : 23 GB
> 
> Initially,  during installation system is asking for service pack 1
> I did that.
> 
> Later, it's asking for core.msi, dev.msi etc. Because system is not able to
> fetch from the web. The log file contains all these errors.

1. Why are you installing 3.5.0?  Don't do that. If you *must* install
3.5, which is unlikely (but you haven't explained why), at least make
sure to install the latest bugfix version of 3.5, which is 3.5.4 (that's
the last with an installer provided). Better is to install 3.7 or 3.8,
which are in active support.

2. The installer needs to talk to the Internet in some circumstances. If
you have a machine without Internet access, use a different machine and
follow the instructions here:

https://docs.python.org/3/using/windows.html#installing-without-downloading

and then transfer the files to your target machine and install from that.

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


Re: Help with installation please

2020-05-17 Thread Oscar Benjamin
On Sun, 17 May 2020 at 15:21, Mats Wichmann  wrote:
>
> On 5/15/20 9:47 PM, Souvik Dutta wrote:
> > I dont know if you should shift from powershell to cmd. Python kinda does
> > not work in powershell.
>
> Powershell has a funky way of looking up programs, with the result that
> you have to type the full name for many.
>
> python.exe - should work, probably. maybe.
>
> Using the Python Launcher helps: it works without extra games
>
> py
>
>
> If you install the Python from the Microsoft Store it will work more
> "predicatably" - python, and python3, will work from both a cmd and a
> powershell commandline.  on the other hand, you will have no Python
> Launcher on such a setup.

I find the inconsistencies when it comes to "running Python" in a
terminal in different operating systems or environments very
frustrating. When teaching a class of 200 students who are new to
programming it is really important that you can give a simple
instruction that works. I'm yet to find that simple instruction for
the basic task of starting a Python interpreter.

I hope that one day we can get to a situation where once Python is
installed it can be run by typing "python" in whatever terminal you
want.

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


Re: Help with installation please

2020-05-17 Thread boB Stepp

On Sun, May 17, 2020 at 11:52:29PM +0100, Oscar Benjamin wrote:

I find the inconsistencies when it comes to "running Python" in a
terminal in different operating systems or environments very
frustrating. When teaching a class of 200 students who are new to
programming it is really important that you can give a simple
instruction that works. I'm yet to find that simple instruction for
the basic task of starting a Python interpreter.

I hope that one day we can get to a situation where once Python is
installed it can be run by typing "python" in whatever terminal you
want.


Amen!!!

--
Wishing you only the best,

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


Re: Help with installation please

2020-05-17 Thread DL Neil via Python-list

On 18/05/20 10:52 AM, Oscar Benjamin wrote:

On Sun, 17 May 2020 at 15:21, Mats Wichmann  wrote:


On 5/15/20 9:47 PM, Souvik Dutta wrote:

I dont know if you should shift from powershell to cmd. Python kinda does
not work in powershell.


Powershell has a funky way of looking up programs, with the result that
you have to type the full name for many.

python.exe - should work, probably. maybe.

Using the Python Launcher helps: it works without extra games

py


If you install the Python from the Microsoft Store it will work more
"predicatably" - python, and python3, will work from both a cmd and a
powershell commandline.  on the other hand, you will have no Python
Launcher on such a setup.


I find the inconsistencies when it comes to "running Python" in a
terminal in different operating systems or environments very
frustrating. When teaching a class of 200 students who are new to
programming it is really important that you can give a simple
instruction that works. I'm yet to find that simple instruction for
the basic task of starting a Python interpreter.

I hope that one day we can get to a situation where once Python is
installed it can be run by typing "python" in whatever terminal you
want.
At last, someone who understands the problem when it is bigger than one 
person!


To be fair, the issue is caused by the likes of Microsoft and Apple 
deciding that they have 'the one true way'. However, wishing ain't going 
to make the problem go-away!


This question (and its predecessor: "how do I install") is asked so 
frequently it is obviously a major bug-bear. Yet, it is something I (and 
most others with Python experience) do from 'muscle-memory' and without 
thinking...


In the spirit of F/LOSS, if the previously-mentioned web-ref is not 
sufficient, and  you are able to outline simple instructions to start a 
DOS-box (or whatever they call it these days) and the equivalent on 
Apple (as relevant to your environment), that's probably the best we can 
do at the applications level - and we should use that to update/improve 
the docs...

--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list