You are not logged in.
Hi ALL,
Just started learning python on windows a month ago moved to linux, I can see python 2.7 is installed in synaptic but I don't know how to run the interpreter, or put it in my obmenu so I can start writing python scripts?
Many Thanks Josh.
Offline
To write scripts all you need is a text editor. Geany does the job well, and you can set the syntax highlighting to suit. (Don't forget the tabs/spaces formatting - I set it to show whitespace so I can see if I've messed it up)
A good python IDE is idle (or idle3) which you can install from the repos. That has an integrated interpreter.
Save as .py, make it executable, put it in your $PATH (I usually use ~/bin) then you can run it with just the script name. Otherwise you can run a script with
python scriptname.pyIf you want to write python in a terminal, then just type
python and <enter> and it starts the terminal interpreter
Another useful tool is a search engine
Using Python on Unix platforms
Last edited by damo (2014-02-21 23:48:28)
Artwork at deviantArt; Iceweasel Personas; SLiM #! Themes; Openbox themes
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.