<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-08-30 17:37 GMT+02:00 GaryTaig <span dir="ltr"><<a href="mailto:taig@melbpc.org.au" target="_blank">taig@melbpc.org.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
My knowledge of Linux is purely academic - that is, I know WHAT it is. However, when it comes to detail, I still think IBM PC and compatible, after 30+ years working in that area. Very little Linux has rubbed off over the past few years.<br>
<br>
I need to start Python and don't know how.<br>
<br>
I'm using Ubuntu 10.04 Lucid which had Python v2.6.5 installed. I needed v3.2 and installed it using the following code.<br>
<br>
sudo add-apt-repository ppa:fkrull/deadsnakes<br>
sudo apt-get update<br>
sudo apt-get install python3.2<br>
<br>
That produced about 100+ lines of output in the terminal window and each activity reached a conclusion - there were no errors etc.<br>
<br>
Before I continue with my project and following more instructions I need to be sure that Py3.2 is installed and working. Note: I'm following fairly explicit instructions but it doesn't involve this really basic stuff. The author has to assume a certain amount of basic knowledge.<br>
<br>
In my Applications Menu the Programming Tab contains four items:<br>
- Bless Hex Editor<br>
- bpython<br>
- DrPython<br>
- CompoZer<br>
<br>
I may have opened one or two over the years but like most other stuff with Ubuntu, I've used none of them. Anyway, none of these starts Python, either 2.6 OR 3.2. I would have expected to see a menu item? No!<br>
<br>
Python3.2 is scattered everywhere. I've searched the entire disk for files that are python3.2 related and found many files, directories, but I don't know or which files to use to start the ball rolling. I've found Executables, links to Executables, links to scripts, lot of stuff.<br>
<br>
One doc I found talks about the importance of usr/bin/pythnx.y and yes, I have many of them. There are Python Executables for versions 1, 2, 3 and many other files in that directory but just looking at those is meaningless. If I was using an IBM based machine I would use an exe or a batch file. I was writing batch files in my sleep in 1982 but when it comes to Linux I have no idea what starts an app running. Some help in that area might start the ball rolling for me. I can follow trails, read files, understand simple English (and complex) but where is that starting point and since Python3.2 would appear to be installed, how can I set up a little script that runs it each time?<br>
<br>
Perhaps more importantly, how does any other program know? Is there a procedure that's followed by all programs when they call upon the services of another system? In DOS based systems we had an environment variable called a "path". This path was searched every time a command was issued. Stored somewhere in a directory in the path you would expect to find the EXE or the batch file needed to start a program or task running. Or, you'd set it up that way.<br>
<br>
What happens in Linux?<br>
<br>
Where is the fabulous tutorial that compares all this stuff?<br>
<br>
TIA<br>
GaryT</blockquote><div><br></div><div>If you just want to run some Python commands you can just run Python from a terminal. Just type:</div><div>python3</div><div>Exit with Ctrl+d or type:</div><div>exit()</div><div><br>
</div><div>If you want to write a Python script, just use any text editor, gedit will be just fine in many cases.</div><div><br></div><div>If you want something more flashy, there are plenty if Python IDEs out there. I found this page, which might interest you:</div>
<div><a href="http://www.linuxcandy.com/2012/07/which-python-ide-is-best-choose-your-own.html">http://www.linuxcandy.com/2012/07/which-python-ide-is-best-choose-your-own.html</a><br></div><div><br></div><div><br></div><div>
<div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div><div>ジョニー・ローゼンバーグ</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
<br>
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/<u></u>mailman/listinfo/ubuntu-users</a><br>
</font></span></blockquote></div><br></div></div>