SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-02-21 23:26:23

Yoshiserry
Member
Registered: 2014-02-19
Posts: 20

how to run python interpreter installed in crunchbang 11 w?

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

Be excellent to each other!

#2 2014-02-21 23:46:07

damo
#! gimpbanger
From: N51.5 W002.8 (mostly)
Registered: 2011-11-24
Posts: 4,440

Re: how to run python interpreter installed in crunchbang 11 w?

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.py

If 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  tongue 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

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo