Boston Python Workshop 8/Friday/Linux set up Python: Difference between revisions

no edit summary
imported>Jesstess
(Created page with "Linux ships with Python installed, so the goal of this page is to make sure you can start a terminal and run Python from the command line. <ol> <li>Start up a Terminal. You ...")
 
imported>Jesstess
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1:
[[File:Python-logo.png|300px]]
Linux ships with Python installed, so the goal of this page is to make sure you can start a terminal and run Python from the command line.
 
Lucky for us, Linux shipscomes with Python installed,! soAll thewe goalneed of thisto pagedo is tomake sure we have an appropriate version of Python installed and make sure youwe can start a terminalTerminal and run Python from the command line.
 
== Checking your Python installation ==
 
<ol>
Line 15 ⟶ 19:
and hit enter. You should see something like
<pre>
Python 2.7.15 (r252:60911, Jan 24 2011, 17:44:40)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Line 24 ⟶ 28:
* You just started Python! The <code>>>></code> indicates that you are at a new type of prompt -- a Python prompt. The command prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.<br />
 
* If the Python version number (2.7.15 in the example above) is not a number between 2.4 and 2.7 (ignoring the number after the second dot), tell a staff member.
</li>
<li>To exit the Python prompt, type
Line 35 ⟶ 39:
</ol>
 
You might need to install a package called python-tk.
 
'''== Success!''' ==
 
You have tested your Python installation.
 
[[File:Champagne.png|100px]][[File:Party.png|125px]]
 
[[Boston Python Workshop 8/Friday|&laquo; Back to the Friday setup page]]
Anonymous user