Omnimaga
General Discussion => Technology and Development => Computer Programming => Topic started by: parserp on September 19, 2011, 12:56:06 am
-
I have just decided to learn python with my father. So my question is:
what are the things that I have to do in order to get python to work on my linux computer?
Is there something that the computer allready comes with, or do you have to download something?
Note: the computer's OS is open suse 11.1... I am pretty sure.
-
I'm 90% percent sure you already have Python.
Try typing in 'python' in your terminal, and see if it spasms.
If you don't have Python installed by default, just download a copy of Python from whatever repository you use or directly from Python's website.
The default IDE is called IDLE, and it works fine, but it looks like crap on Linux boxes, so you might want to consider getting a different IDE if that sort of thing bothers you (I like Geany, myself).
-
I have just decided to learn python with my father. So my question is:
what are the things that I have to do in order to get python to work on my linux computer?
Is there something that the computer allready comes with, or do you have to download something?
Note: the computer's OS is open suse 11.1... I am pretty sure.
OpenSUSE? You can install packages named "python" and "python-idle". "python2.6", "python2.7", etc should also be available.
The Python IDLE was not made for Linux, it was made with Windows in mind, because of its crappy console. On Linux, I recommend you just use the terminal, because it's very good.
To make a file use a text editor (vim, nano, emacs, gedit, geany, etc), and then to run the file use:
python name_of_file.py
Good luck!
-
Hey, good luck. Most Linux distros come with Python pre-installed. I know Ubuntu does, and that's the only linux I've used, so yeah.
-
Hey, good luck. Most Linux distros come with Python pre-installed. I know Ubuntu does, and that's the only linux I've used, so yeah.
In fact, most of them *have to* because A LOT of programs use python and thus linux distros have python pre-installed for program compatibility, unlike *cough* Microsoft *cough*.
-
Sweet, it does come with it installed... I just did it in the terminal.
But how do you execute the programs? I know that they are interpreted, but from where do you run them?
???
-
If you write a script named 'test.py', navigate using the terminal to the folder containing the file, then type in 'python test.py'.
-
If you want to know where you can learn python, here you go: http://www.khanacademy.org/#computer-science
-
Awesome! thank you. now the real work begins... ;)
-
and you may want to use pyscripter: http://code.google.com/p/pyscripter/downloads/list
screenie:
(http://pyscripter.googlecode.com/svn/wiki/images/screenshot1.png)
-
and you may want to use pyscripter: http://code.google.com/p/pyscripter/downloads/list
That seems to be for Windows ???