Differences between revisions 65 and 115 (spanning 50 versions)
Revision 65 as of 2008-01-24 11:36:57
Size: 2023
Editor: bounty
Comment:
Revision 115 as of 2022-11-03 16:19:13
Size: 2668
Editor: mtreinish
Comment: Updating the instructions to reflect more recent platform developments and also make the steps a bit more clear
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
On many systems Python comes pre-installed, you can try running the `python` command to start the
Python interpreter to check and see if it is already installed. On windows you can try the `py`
command which is a launcher which is more likely to work. If it is installed you will see a
response which will include the version number, for example:
Line 4: Line 8:
Before you start, you will need Python on your computer, but you may not need to download it.
First of all check (by entering '''python''' in a command line window) that you don't
already have Python installed! If you see a response from a Python interpreter it will
include a version number in its inital display. Generally any recent version will do,
as Python makes every attempt to maintain backwards compatibility.
{{{
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
}}}
Line 10: Line 13:
If you need to install, you may as well download the most recent stable version.
This is the one with the highest number that isn't marked as an alpha or beta
release. Currently the stable version is [http://www.python.org/2.5.1/ Python 2.5.1].
If you don't see this, you will need to install Python on your system.
Line 14: Line 15:
'''If you're running Windows''':
the most stable Windows download is
[http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi Python 2.5.1 for Windows].
If the version number is Python 2.x.y (where `x` and `y` are any number) you are using Python 2
which is no longer supported and is not a good choice for development. You can try running `python3`
to see if there is also a Python 3.x.y version installed, if not you'll want to install the
latest version of Python.
Line 18: Line 20:
'''If you're running Windows XP''':
a complete guide to installing ActivePython is at
[http://www.richarddooling.com/index.php/2006/03/14/python-on-xp-7-minutes-to-hello-world/ Python on XP: 7 Minutes To "Hello World!"]. ShowMeDo has [http://showmedo.com/videos/series?name=pythonOzsvaldPyNewbieSeries two videos] for downloading, installing and getting started with Python 2.5 on a Windows XP machine - this series talks you through the Python 2.5, ActivePython and SciPy distributions.
If you do not have Python installed or need a newer version you can go to:
Line 22: Line 22:
'''If you are using a Mac''', see [http://www.python.org/download/mac/ this page].
MacOS 10.2 (Jaguar), 10.3 (Panther) and 10.4 (Tiger) come with Python already, but you will probably want to install the [http://pythonmac.org/packages/py25-fat/index.html latest universal build].
https://www.python.org/downloads/
Line 25: Line 24:
'''For Red Hat''', install the python2 and python2-devel packages. which will provide a button to download an installer for your particular system.
Line 27: Line 26:
'''For Debian or Ubuntu''', install the python2.5 and python2.5-dev packages. Below are some system specific notes to keep in mind
Line 29: Line 28:
'''For Gentoo''', install the '=python-2.5*' ebuild (you may have to unmask it first). === Windows ===
Line 31: Line 30:
'''For other systems''', or '''if you want to install from source''', see the
[http://www.python.org/download/ general download page].
On Windows the most stable build is available from the official download page

https://www.python.org/downloads/

You should download and run the installer from that page to get the latest version
of Python for your system.

=== Mac ===

For macOS 10.9 (Jaguar) up until 12.3 (Catalina) the operating system includes Python 2, which
is no longer supported and is not a good choice for development. You should go to do the downloads
page: https://www.python.org/downloads/ and download the installer.

For newer versions of macOS, Python is no longer included by default and you will have to
download and install it.

=== Linux ===

On most Linux distributions Python comes pre-installed and/or available via the distribution's
package managers. Below are some common examples, but refer to your specific distribution's
documentation and package list to get the most up to date instructions.

If you'd like to download and build Python from source (or your distribution's package manager
does not include a version of Python you need) you can download a source tarball from the general
download page: https://www.python.org/downloads/

==== Red Hat, CentOS, or Fedora ====

{{{
dnf install python3 python3-devel
}}}

==== Debian or Ubuntu ====

{{{
apt-get install python3 python3-dev
}}}

==== Gentoo ====

{{{
emerge dev-lang/python
}}}


==== Arch Linux ====

{{{
pacman -S python3
}}}

Downloading Python

On many systems Python comes pre-installed, you can try running the python command to start the Python interpreter to check and see if it is already installed. On windows you can try the py command which is a launcher which is more likely to work. If it is installed you will see a response which will include the version number, for example:

Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

If you don't see this, you will need to install Python on your system.

If the version number is Python 2.x.y (where x and y are any number) you are using Python 2 which is no longer supported and is not a good choice for development. You can try running python3 to see if there is also a Python 3.x.y version installed, if not you'll want to install the latest version of Python.

If you do not have Python installed or need a newer version you can go to:

https://www.python.org/downloads/

which will provide a button to download an installer for your particular system.

Below are some system specific notes to keep in mind

Windows

On Windows the most stable build is available from the official download page

https://www.python.org/downloads/

You should download and run the installer from that page to get the latest version of Python for your system.

Mac

For macOS 10.9 (Jaguar) up until 12.3 (Catalina) the operating system includes Python 2, which is no longer supported and is not a good choice for development. You should go to do the downloads page: https://www.python.org/downloads/ and download the installer.

For newer versions of macOS, Python is no longer included by default and you will have to download and install it.

Linux

On most Linux distributions Python comes pre-installed and/or available via the distribution's package managers. Below are some common examples, but refer to your specific distribution's documentation and package list to get the most up to date instructions.

If you'd like to download and build Python from source (or your distribution's package manager does not include a version of Python you need) you can download a source tarball from the general download page: https://www.python.org/downloads/

Red Hat, CentOS, or Fedora

dnf install python3 python3-devel

Debian or Ubuntu

apt-get install python3 python3-dev

Gentoo

emerge dev-lang/python

Arch Linux

pacman -S python3

BeginnersGuide/Download (last edited 2022-11-04 18:41:16 by mtreinish)

Unable to edit the page? See the FrontPage for instructions.