[issue12436] Provide reference to detailed installation instructions
New submission from Nick Coghlan
Senthil Kumaran
Éric Araujo
Goal #1: set up Python I believe http://docs.python.org/dev/using/ covers this.
Goal #2: prepare a text editor This is missing from our docs. (My first thought was that it was out of scope, but for complete beginners, it would be nice to give a few pointers.)
Goal #3: practice starting and exiting Python The tutorial has one page about that.
Goal #4: practice navigating the computer from a command prompt Out of scope?
Goal #5: practice running Python code from a file This is probably in the tutorial or using docs, I have to check.
Goal #6: get dependencies installed for the Saturday projects This used to be non-standard, but now that we have packaging and pysetup, I translate this item to a doc bug: Explain how to use pysetup to get dependencies (in using, I think).
Goal #7: start learning Python! Goal #8: Checkoff Nothing to add, IMO.
----------
nosy: +eric.araujo
_______________________________________
Python tracker
Nick Coghlan
Changes by Adam Woodbeck
Adam Woodbeck
Éric Araujo
Senthil Kumaran
Éric Araujo
Mike Hoy
- How to prepare a text editor See: http://docs.python.org/dev/using/unix.html#editors
- How to run Python code from a file (if the tutorial or using docs don’t already have it).
See: http://docs.python.org/dev/using/unix.html#miscellaneous
----------
nosy: +mikehoy
_______________________________________
Python tracker
Éric Araujo
Mike Hoy
Thanks Mike! So the first item is covered (at least for UNIX, can you check the Windows docs too?), but not the second.
http://docs.python.org/dev/using/windows.html Makes no reference to preparing a text editor. This I could help with but...
The item you linked to explains how to modify a script so that it’s possible to run ./script on Unix, but does not give an actual example of running it, nor does it explain “python script” or “python script.py” or “python -m module”.
Some one else would have to write this part unless you can give me some info about how it should be worded.
----------
_______________________________________
Python tracker
Éric Araujo
http://docs.python.org/dev/using/windows.html Makes no reference to preparing a text editor. This I could help with but... Cool, please follow the guidelines in the devguide to make a patch for 3.2. It should be something short, like the unix docs, mostly to recommend Notepad++ I think.
For Windows users, added a section about how to use a terminal and possibly a link to PowerShell would be another good addition IMO.
Some one else would have to write this part unless you can give me some info about how it should be worded. I’ll propose a patch.
----------
_______________________________________
Python tracker
Mike Hoy
mostly to recommend Notepad++ I think.
In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve?
For Windows users, added a section about how to use a terminal and
Do you think it would be a good idea to add instructions on how to add Python to the Path in Windows? It could be 'borrowed' from the Boston Python Workshop Page I would think. It's pretty long but useful considering how much trouble I have had having to do this myself under Windows.
----------
_______________________________________
Python tracker
Ezio Melotti
In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve?
I'm not sure how many windows user use Vim/Emacs. Maybe PyScripter could be mentioned too, but I'm not sure how popular it is and if there are better alternatives.
Do you think it would be a good idea to add instructions on how to add Python to the Path in Windows?
Yes, but isn't there a script somewhere that does that already?
----------
nosy: +ezio.melotti
_______________________________________
Python tracker
Antoine Pitrou
In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve?
I'm a bit surprised. I would think the devguide is aimed are people who are *already* programmers, and have chosen their tools. Therefore I don't know how such material is useful, and the devguide is already hefty enough.
----------
nosy: +pitrou
_______________________________________
Python tracker
Antoine Pitrou
Éric Araujo
In addition to Notepad++ do you think it would be a good idea to at least mention Vim and Emacs with a disclaimer about the learning curve? No. If someone is looking at this page and doesn’t already have a text editor they’re familiar with, I think Notepad++ is the right tool to suggest.
Do you think it would be a good idea to add instructions on how to add Python to the Path in Windows? The doc already has that somewhere, unless I misremember.
Yes, but isn't there a script somewhere that does that already? One or more in Tools/scripts and maybe in PC or PCbuild too.
----------
_______________________________________
Python tracker
Mike Hoy
For Windows users, added a section about how to use a terminal
How to use a terminal Open a command prompt: * On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type cmd into the Search field directly above the Start menu button, and click on "cmd" in the search results above the Search field. * On Windows XP: click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type cmd into the text box, and hit enter. Commands used in terminal * cd C:\ - Puts you in the root directory of the C drive. * cd Python32 - Puts you in the directory where Python 3.2 is installed. * dir - This command lists the contents of the Python32 directory. * python - This command will invoke python.exe and bring up the interpreter.
a link to PowerShell
Windows PowerShell
Windows PowerShell is a task-based command-line shell and scripting language designed for system administration. It can be obtained here: http://technet.microsoft.com/en-us/library/bb978526.aspx.
----------
_______________________________________
Python tracker
Ezio Melotti
Open a command prompt: Another alternative is win+r -> type 'cmd' -> hit enter. This should work on all the Windows versions.
* cd C:\ - Puts you in the root directory of the C drive. * cd Python32 - Puts you in the directory where Python 3.2 is installed.
What if it's not installed there? Maybe it's better to say something like "use the 'cd' command to move to the directory where Python is installed" possibly mentioning the default installation directory and 'cd ..'.
* dir - This command lists the contents of the Python32 directory. * python - This command will invoke python.exe and bring up the interpreter.
If the dir is already added to the PATH 'python' will work already without having to navigate to the installation dir.
Also if the user installed Python there should be a "Python (command line)" entry in the start menu that brings up the interpreter.
----------
_______________________________________
Python tracker
Éric Araujo
Changes by Tshepang Lekhonkhobe
Mike Hoy added the comment:
Thanks, I will take all contributions and suggestions and propose one patch.
I am able to start working on this issue again, Eric. If you want to give me the status of your patch I can either help you finish it up or I can make one this week.
----------
_______________________________________
Python tracker
Éric Araujo added the comment:
My computer currently doesn’t boot so I can’t check if I had started or not. You can propose a patch incorporating the various suggestions, or give me some days to read this again and make a summary of what I would have done. Thanks!
----------
_______________________________________
Python tracker
Mike Hoy added the comment:
Here is a patch for just Notepad++.
----------
keywords: +patch
Added file: http://bugs.python.org/file26891/issue12436-notepad_plus_plus.diff
_______________________________________
Python tracker
Changes by Mike Hoy
Mike Hoy added the comment:
Wrapped my text columns to 80. Ignore v2.
----------
Added file: http://bugs.python.org/file26904/issue12436-notepad_plus_plus_3.diff
_______________________________________
Python tracker
STINNER Victor
Change by Irit Katriel
participants (10)
-
Adam Woodbeck
-
Antoine Pitrou
-
Ezio Melotti
-
Irit Katriel
-
Mike Hoy
-
Nick Coghlan
-
Senthil Kumaran
-
STINNER Victor
-
Tshepang Lekhonkhobe
-
Éric Araujo