Koray Karaman

About Koray Karaman Categories Home Music Photos Files
Posts
Files
About
Categories
Music
Projects
Photos
Go Back
23.06.2016 07:16
PERMALINK

Like21 Reactions

How to run python codes in Linux based OS

All python codes inside this site can be run with several ways, but the official and the best Cross-platform is python IDLE.

Step 1

Open your terminal for installing idle and type;


sudo apt-get install idle

Step 2

Terminal will ask to install IDLE type "Y" and Return; 

Step 3

After installation complete you can type;


sudo idle

Step 4

This will open the IDLE GUI; 

Step 5

Than you can run your scripts; using File>Open menu; 

Step 6

Than select your python script, this will open your script in a new window; 

Step 7

After this you can run your script with; pressing F5 key in your keyboard or Run>Run Module menu; 

Step 8

Or you can just test your IDLE with this two simple lines;


#!/usr/bin/python 
print 'Hello, world!'

Step 9

IDLE should give this expected output;


Hello, world!
>>> 

Koray Karaman

Browse on Mobile

Sending Mail with Attachment over Python Connect MySQL with Python Windows/Linux/Mac OSx
Facebook Twitter Instagram Github
© 2006—2026 Koray Karaman