LJHaddow
Posts: 3
Joined: Mon Jul 09, 2012 12:37 pm

Starting editor / compiler on the Pi

Mon Jul 09, 2012 12:49 pm

My questions (as usual, apologies if already addressed / answer obvious):
How to I open up and run an editor / compiler to get started with coding Python (or indeed any other programming language) on the Pi? Is it already supplied with the operating system? Are there others available elsewhere? Could/should I write code on another machine and export to an SD card, or is it best to do everything on the Pi?

My background:
User of both Macs and PCs - but in no way a "power user". Never even seen a computer with Linux on it before. Know a bit of C++ and Objective-C (in a very self-taught, casual, non-professional way).

Thanks!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24175
Joined: Sat Jul 30, 2011 7:41 pm

Re: Starting editor / compiler on the Pi

Mon Jul 09, 2012 1:09 pm

Python is already installed. It's an interpreted language so you don't need a compile stage, and you can run it without an editor. There are lots of python tutorials on the web, and on the Python home page that should get you going.

Editor, from the command line, vim would be OK, or Nano, again, check google for instructions.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

LJHaddow
Posts: 3
Joined: Mon Jul 09, 2012 12:37 pm

Re: Starting editor / compiler on the Pi

Mon Jul 09, 2012 1:33 pm

Thanks Jamesh.
So it runs a bit like BASIC did? But inside another application (e.g. Vim)?
I'll need to have a play around with it when I get home later. I hope you don't mind if I ask for more advice. I've just had a quick look at the Getting Started guide on python.org and none of it makes sense without the Pi in front of me!

antiloquax
Posts: 406
Joined: Sun Nov 20, 2011 11:37 am
Contact: Website

Re: Starting editor / compiler on the Pi

Sun Jul 15, 2012 8:18 pm

Hi,
Here's a page with some good tutorials for Python listed.

I also have a couple of blog posts that may help:
Team Python
100Mudcats

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Starting editor / compiler on the Pi

Mon Jul 16, 2012 8:35 am

You will find instructions for absolute beginners in the MagPi magazine
www.themagpi.com

I think the June edition showed how to edit and run a Python program.

Return to “General programming discussion”