SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
Python - ArchWiki

1 of 6

https://wiki.archlinux.org/index.php/Python

Python
From ArchWiki
Python (http://www.python.org) "is a remarkably powerful dynamic
programming language that is used in a wide variety of application domains.
Python is often compared to Tcl, Perl, Ruby, Scheme or Java."

Related articles
Python Package
Guidelines
mod_python

Contents

Python VirtualEnv

1 Installation
1.1 Python 3
1.2 Python 2
2 Dealing with version problem in build scripts
3 Integrated Development Environments
3.1 Eclipse
3.2 Eric
3.3 IEP
3.4 Ninja
3.5 Spyder
4 Getting easy_install
5 Getting completion in Python shell
6 Widget bindings
7 Old versions
8 More Resources
9 For Fun

Installation
There are currently two versions of Python: Python 3 (which is the default) and the older Python 2.

Python 3
Python 3 is the latest version of the language, and is incompatible with Python 2. The language is mostly
the same, but many details, especially how built-in objects like dictionaries and strings work, have changed
considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been
reorganized in a few prominent places. For an overview of the differences, visit Python2orPython3
(http://wiki.python.org/moin/Python2orPython3) and their relevant chapter (http://getpython3.com
/diveintopython3/porting-code-to-python-3-with-2to3.html) in Dive into Python 3.
To install the latest version of Python 3, install the python (https://www.archlinux.org/packages
/?name=python) package from the official repositories.
If you would like to build the latest RC/betas from source, visit Python Downloads (http://www.python.org
/download/). The Arch User Repository also contains good PKGBUILDs. If you do decide to build the RC,
note that the binary (by default) installs to /usr/local/bin/python3.x .

1/29/2014 12:40 PM
Python - ArchWiki

2 of 6

https://wiki.archlinux.org/index.php/Python

Python 2
To install the latest version of Python 2, install the python2 (https://www.archlinux.org/packages
/?name=python2) package from the official repositories.
Python 2 will happily run alongside Python 3. You need to specify python2 in order to run this version.
Any program requiring Python 2 needs to point to /usr/bin/python2 , instead of /usr/bin/python ,
which points to Python 3.
To do so, open the program or script in a text editor and change the first line.
The line will show one of the following:
#!/usr/bin/env python

or
#!/usr/bin/python

In both cases, just change python to python2 and the program will then use Python 2 instead of Python 3.
Another way to force the use of python2 without altering the scripts is to call it explicitely with python2, i.e.
python2 myScript.py

Finally, you may not be able to control the script calls, but there is a way to trick the environment. It only
works if the scripts use #!/usr/bin/env python , it won't work with #!/usr/bin/python . This trick
relies on env searching for the first corresponding entry in the PATH variable. First create a dummy folder.
$ mkdir ~/bin

Then add a symlink 'python' to python2 and the config scripts in it.
$ ln -s /usr/bin/python2 ~/bin/python
$ ln -s /usr/bin/python2-config ~/bin/python-config

Finally put the new folder at the beginning of your PATH variable.
$ export PATH=~/bin:$PATH

Note that this change is not permanent and is only active in the current terminal session. To check which
python interpreter is being used by env , use the following command:
$ which python

A similar approach in tricking the environment, which also relies on #!/usr/bin/env python to be called
by the script in question, is to use a Virtualenv. When a Virtualenv is activated, the Python executable
pointed to by $PATH will be the one the Virtualenv was installed with. Therefore, if the Virtualenv is

1/29/2014 12:40 PM
Python - ArchWiki

3 of 6

https://wiki.archlinux.org/index.php/Python

installed with Python 2, python will refer to Python 2. To start, install python2-virtualenv
(https://www.archlinux.org/packages/?name=python2-virtualenv).
# pacman -S python2-virtualenv

Then create the Virtualenv.
$ virtualenv2 venv # Creates a directory, venv/, containing the Virtualenv

Activate the Virtualenv, which will update $PATH to point at Python 2. Note that this activation is only
active for the current terminal session.
$ source venv/bin/activate

The desired script should then run using Python 2.

Dealing with version problem in build scripts
Many projects' build scripts assume python to be Python 2, and that would eventually result in an error typically complaining that print 'foo' is invalid syntax. Luckily, many of them call python in the
$PATH instead of hardcoding #!/usr/bin/python in the shebang line, and the Python scripts are all
contained within the project tree. So, instead of modifying the build scripts manually, there is an easy
workaround. Just create /usr/local/bin/python with content like this:
/usr/local/bin/python
#!/bin/bash
script=`readlink -f -- "$1"`
case "$script" in (/path/to/project1/*|/path/to/project2/*|/path/to/project3*)
exec python2 "$@"
;;
esac
script=`readlink -f -- "$2"`
case "$script" in (/path/to/project1/*|/path/to/project2/*|/path/to/project3*)
exec python2 "$@"
;;
esac
exec python3 "$@"

Where /path/to/project1/*|/path/to/project2/*|/path/to/project3* is a list of patterns separated
by | matching all project trees.
Don't forget to make it executable:
# chmod +x /usr/local/bin/python

Afterwards scripts within the specified project trees will be run with Python 2.

Integrated Development Environments

1/29/2014 12:40 PM
Python - ArchWiki

4 of 6

https://wiki.archlinux.org/index.php/Python

There are some IDEs for Python available in the official repositories.

Eclipse
Eclipse supports both Python 2.x and 3.x series by using the PyDev extension.

Eric
For the latest Python 3 compatible version, install the eric (https://www.archlinux.org/packages
/?name=eric) package.
Version 4 of Eric is Python 2 compatible and can be installed with the eric4
(https://www.archlinux.org/packages/?name=eric4) package.
These IDEs can also handle Ruby.

IEP
IEP is an interactive (e.g. MATLAB) python IDE with basic debugging capabilities and is especially suitable
for scientific computing. It is provided by the package iep (https://aur.archlinux.org/packages
/iep/).

Ninja
The Ninja IDE is provided by the package ninja-ide (https://www.archlinux.org/packages
/?name=ninja-ide).

Spyder
Spyder (previously known as Pydee) is a powerful interactive development environment for the Python
language with advanced editing, interactive testing, debugging and introspection features. It focuses on
scientific computations, providing a matlab-like environment. It can be installed with the package spyder
(https://aur.archlinux.org/packages/spyder/)

Getting easy_install
The easy_install tool is available in the package python-setuptools (https://www.archlinux.org
/packages/?name=python-setuptools).

Getting completion in Python shell
Copy this into Python's interactive shell
/usr/bin/python
import rlcompleter
import readline
readline.parse_and_bind("tab: complete")

1/29/2014 12:40 PM
Python - ArchWiki

5 of 6

https://wiki.archlinux.org/index.php/Python

Source (http://algorithmicallyrandom.blogspot.com.es/2009/09/tab-completion-in-python-shell-how-to.html)

Widget bindings
The following widget toolkit bindings are available:
TkInter — Tk bindings
http://wiki.python.org/moin/TkInter || standard module
pyQt — Qt bindings
http://www.riverbankcomputing.co.uk/software/pyqt/intro || python2-pyqt4
(https://www.archlinux.org/packages/?name=python2-pyqt4) python2-pyqt5
(https://www.archlinux.org/packages/?name=python2-pyqt5) python-pyqt4
(https://www.archlinux.org/packages/?name=python-pyqt4) python-pyqt5
(https://www.archlinux.org/packages/?name=python-pyqt5)

pySide — Qt bindings
http://www.pyside.org/ || python2-pyside (https://aur.archlinux.org/packages/python2pyside/) python-pyside (https://aur.archlinux.org/packages/python-pyside/)

pyGTK — GTK+ 2 bindings
http://www.pygtk.org/ || pygtk (https://www.archlinux.org/packages/?name=pygtk)
PyGObject — GTK+ 2/3 bindings via GObject Introspection
https://wiki.gnome.org/PyGObject/ || python2-gobject2 (https://www.archlinux.org/packages
/?name=python2-gobject2) python2-gobject (https://www.archlinux.org/packages
/?name=python2-gobject) python-gobject2 (https://www.archlinux.org/packages
/?name=python-gobject2) python-gobject (https://www.archlinux.org/packages
/?name=python-gobject)

wxPython — wxWidgets bindings
http://wxpython.org/ || wxpython (https://www.archlinux.org/packages/?name=wxpython)
To use these with Python, you may need to install the associated widget kits.

Old versions
Old versions of Python are available via the AUR and may be useful for historical curiosity, old applications
that don't run on current versions, or for testing Python programs intended to run on a distribution that
comes with an older version (eg, RHEL 5.x has Python 2.4, or Ubuntu 12.04 has Python 3.1):
python15 (https://aur.archlinux.org/packages/python15/):
python16
python24
python25
python26
python30

Python 1.5.2
(https://aur.archlinux.org/packages/python16/): Python 1.6.1
(https://aur.archlinux.org/packages/python24/): Python 2.4.6
(https://aur.archlinux.org/packages/python25/): Python 2.5.6
(https://aur.archlinux.org/packages/python26/): Python 2.6.8
(https://aur.archlinux.org/packages/python30/): Python 3.0.1

1/29/2014 12:40 PM
Python - ArchWiki

6 of 6

https://wiki.archlinux.org/index.php/Python

python31 (https://aur.archlinux.org/packages/python31/):

Python 3.1.5
python32 (https://aur.archlinux.org/packages/python32/): Python 3.2.3
As of November 2012, Python upstream only supports Python 2.6, 2.7, 3.1, 3.2, and 3.3 for security fixes.
Using older versions for Internet-facing applications or untrusted code may be dangerous and is not
recommended.
Extra modules/libraries for old versions of Python may be found on the AUR by searching for
python(version without decimal), eg searching for "python26" for 2.6 modules.

More Resources
Learning Python (http://shop.oreilly.com/product/9780596158071.do) is one of the most
comprehensive, up to date, and well-written books on Python available today.
Dive Into Python (http://www.diveintopython.net/) is an excellent (free) resource, but perhaps for
more advanced readers and has been updated for Python 3 (http://diveintopython3.ep.io/).
A Byte of Python (http://www.swaroopch.com/notes/Python) is a book suitable for users new to
Python (and scripting in general).
Learn Python The Hard Way (http://learnpythonthehardway.org) the best intro to programming.
facts.learnpython.org (http://facts.learnpython.org) nice site to learn python.
Crash into Python (http://stephensugden.com/crash_into_python/) Also known as Python for
Programmers with 3 Hours, this guide gives experienced developers from other languages a crash
course on Python.
Beginning Game Development with Python and Pygame: From Novice to Professional
(http://www.apress.com/book/view/9781590598726) for games

For Fun
Try the following snippets from Python's interactive shell:
>>> import this

>>> from __future__ import braces

>>> import antigravity

Retrieved from "https://wiki.archlinux.org/index.php?title=Python&oldid=294398"
Category: Programming language
This page was last modified on 25 January 2014, at 21:30.
Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.

1/29/2014 12:40 PM

Mais conteúdo relacionado

Mais procurados

101 2.3 manage shared libraries
101 2.3 manage shared libraries101 2.3 manage shared libraries
101 2.3 manage shared librariesAcácio Oliveira
 
Puppet Systems Infrastructure Construction Kit
Puppet Systems Infrastructure Construction KitPuppet Systems Infrastructure Construction Kit
Puppet Systems Infrastructure Construction KitAlessandro Franceschi
 
How to deliver a Python project
How to deliver a Python projectHow to deliver a Python project
How to deliver a Python projectmattjdavidson
 
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelThe TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelDivye Kapoor
 
Reversing the dropbox client on windows
Reversing the dropbox client on windowsReversing the dropbox client on windows
Reversing the dropbox client on windowsextremecoders
 
Fighting API Compatibility On Fluentd Using "Black Magic"
Fighting API Compatibility On Fluentd Using "Black Magic"Fighting API Compatibility On Fluentd Using "Black Magic"
Fighting API Compatibility On Fluentd Using "Black Magic"SATOSHI TAGOMORI
 
Linux and Localization Tutorial Paras pradhan Senior Linux ...
Linux and Localization Tutorial Paras pradhan Senior Linux ...Linux and Localization Tutorial Paras pradhan Senior Linux ...
Linux and Localization Tutorial Paras pradhan Senior Linux ...webhostingguy
 
101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filtersAcácio Oliveira
 
101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filtersAcácio Oliveira
 
Buildroot easy embedded system
Buildroot easy embedded systemBuildroot easy embedded system
Buildroot easy embedded systemNirma University
 
Assignment unix & shell programming
Assignment  unix  & shell programmingAssignment  unix  & shell programming
Assignment unix & shell programmingMohit Aggarwal
 
Ry pyconjp2015 karaoke
Ry pyconjp2015 karaokeRy pyconjp2015 karaoke
Ry pyconjp2015 karaokeRenyuan Lyu
 
3.2 process text streams using filters
3.2 process text streams using filters3.2 process text streams using filters
3.2 process text streams using filtersAcácio Oliveira
 
Integrating libSyntax into the compiler pipeline
Integrating libSyntax into the compiler pipelineIntegrating libSyntax into the compiler pipeline
Integrating libSyntax into the compiler pipelineYusuke Kita
 
Golang execution modes
Golang execution modesGolang execution modes
Golang execution modesTing-Li Chou
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersDevanand Gehlot
 

Mais procurados (20)

101 2.3 manage shared libraries
101 2.3 manage shared libraries101 2.3 manage shared libraries
101 2.3 manage shared libraries
 
Python at Facebook
Python at FacebookPython at Facebook
Python at Facebook
 
Puppet Systems Infrastructure Construction Kit
Puppet Systems Infrastructure Construction KitPuppet Systems Infrastructure Construction Kit
Puppet Systems Infrastructure Construction Kit
 
How to deliver a Python project
How to deliver a Python projectHow to deliver a Python project
How to deliver a Python project
 
The TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux KernelThe TCP/IP Stack in the Linux Kernel
The TCP/IP Stack in the Linux Kernel
 
Reversing the dropbox client on windows
Reversing the dropbox client on windowsReversing the dropbox client on windows
Reversing the dropbox client on windows
 
Fighting API Compatibility On Fluentd Using "Black Magic"
Fighting API Compatibility On Fluentd Using "Black Magic"Fighting API Compatibility On Fluentd Using "Black Magic"
Fighting API Compatibility On Fluentd Using "Black Magic"
 
Linux and Localization Tutorial Paras pradhan Senior Linux ...
Linux and Localization Tutorial Paras pradhan Senior Linux ...Linux and Localization Tutorial Paras pradhan Senior Linux ...
Linux and Localization Tutorial Paras pradhan Senior Linux ...
 
101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filters
 
101 3.2 process text streams using filters
101 3.2 process text streams using filters101 3.2 process text streams using filters
101 3.2 process text streams using filters
 
Buildroot easy embedded system
Buildroot easy embedded systemBuildroot easy embedded system
Buildroot easy embedded system
 
Assignment unix & shell programming
Assignment  unix  & shell programmingAssignment  unix  & shell programming
Assignment unix & shell programming
 
Ry pyconjp2015 karaoke
Ry pyconjp2015 karaokeRy pyconjp2015 karaoke
Ry pyconjp2015 karaoke
 
3.2 process text streams using filters
3.2 process text streams using filters3.2 process text streams using filters
3.2 process text streams using filters
 
LuaJIT
LuaJITLuaJIT
LuaJIT
 
Linux
LinuxLinux
Linux
 
Integrating libSyntax into the compiler pipeline
Integrating libSyntax into the compiler pipelineIntegrating libSyntax into the compiler pipeline
Integrating libSyntax into the compiler pipeline
 
Golang execution modes
Golang execution modesGolang execution modes
Golang execution modes
 
Vim and Python
Vim and PythonVim and Python
Vim and Python
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy Sanders
 

Semelhante a Python arch wiki

Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntuIker Coranti
 
Package Management via Spack on SJTU π Supercomputer
Package Management via Spack on SJTU π SupercomputerPackage Management via Spack on SJTU π Supercomputer
Package Management via Spack on SJTU π SupercomputerJianwen Wei
 
Python Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptxPython Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptxBautistaAljhonG
 
First python project
First python projectFirst python project
First python projectNeetu Jain
 
5 minute intro to virtualenv
5 minute intro to virtualenv5 minute intro to virtualenv
5 minute intro to virtualenvamenasse
 
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017Codemotion
 
Python Basics for Operators Troubleshooting OpenStack
Python Basics for Operators Troubleshooting OpenStackPython Basics for Operators Troubleshooting OpenStack
Python Basics for Operators Troubleshooting OpenStackJames Dennis
 
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)Aaron Meurer
 
Jenkins and Docker for native Linux packages
Jenkins and Docker for native Linux packagesJenkins and Docker for native Linux packages
Jenkins and Docker for native Linux packagesDaniel Paulus
 
Build and deploy scientific Python Applications
Build and deploy scientific Python Applications  Build and deploy scientific Python Applications
Build and deploy scientific Python Applications Ramakrishna Reddy
 
Python_Session
Python_SessionPython_Session
Python_Sessionsiva ram
 
Devoxx 2014 [incomplete] summary
Devoxx 2014 [incomplete] summaryDevoxx 2014 [incomplete] summary
Devoxx 2014 [incomplete] summaryArtem Oboturov
 
sphinx demo
sphinx demosphinx demo
sphinx demoak013
 
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...Joachim Jacob
 
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Henry Schreiner
 
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Jian-Hong Pan
 

Semelhante a Python arch wiki (20)

Python tutorial
Python tutorialPython tutorial
Python tutorial
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
Open erp on ubuntu
Open erp on ubuntuOpen erp on ubuntu
Open erp on ubuntu
 
Package Management via Spack on SJTU π Supercomputer
Package Management via Spack on SJTU π SupercomputerPackage Management via Spack on SJTU π Supercomputer
Package Management via Spack on SJTU π Supercomputer
 
Python Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptxPython Programming-Lesson 1- Installation and Environmental Set-up.pptx
Python Programming-Lesson 1- Installation and Environmental Set-up.pptx
 
First python project
First python projectFirst python project
First python project
 
5 minute intro to virtualenv
5 minute intro to virtualenv5 minute intro to virtualenv
5 minute intro to virtualenv
 
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
Christian Strappazzon - Presentazione Python Milano - Codemotion Milano 2017
 
Python Basics for Operators Troubleshooting OpenStack
Python Basics for Operators Troubleshooting OpenStackPython Basics for Operators Troubleshooting OpenStack
Python Basics for Operators Troubleshooting OpenStack
 
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
Conda: A Cross-Platform Package Manager for Any Binary Distribution (SciPy 2014)
 
Jenkins and Docker for native Linux packages
Jenkins and Docker for native Linux packagesJenkins and Docker for native Linux packages
Jenkins and Docker for native Linux packages
 
Build and deploy scientific Python Applications
Build and deploy scientific Python Applications  Build and deploy scientific Python Applications
Build and deploy scientific Python Applications
 
Python_Session
Python_SessionPython_Session
Python_Session
 
Python final ppt
Python final pptPython final ppt
Python final ppt
 
Pythonfinalppt 170822121204
Pythonfinalppt 170822121204Pythonfinalppt 170822121204
Pythonfinalppt 170822121204
 
Devoxx 2014 [incomplete] summary
Devoxx 2014 [incomplete] summaryDevoxx 2014 [incomplete] summary
Devoxx 2014 [incomplete] summary
 
sphinx demo
sphinx demosphinx demo
sphinx demo
 
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
Part 5 of "Introduction to Linux for Bioinformatics": Working the command lin...
 
Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024Software Quality Assurance Tooling - Wintersession 2024
Software Quality Assurance Tooling - Wintersession 2024
 
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
 

Mais de fikrul islamy

Akar persamaan2 metnum
Akar persamaan2 metnumAkar persamaan2 metnum
Akar persamaan2 metnumfikrul islamy
 
Convert an auto cad file to a shapefile and georeferencing
Convert an auto cad file to a shapefile and georeferencingConvert an auto cad file to a shapefile and georeferencing
Convert an auto cad file to a shapefile and georeferencingfikrul islamy
 
Kemas & eclogite #GEOLOGI
Kemas & eclogite #GEOLOGI Kemas & eclogite #GEOLOGI
Kemas & eclogite #GEOLOGI fikrul islamy
 
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...fikrul islamy
 
Prospectus FPIK Brawijaya university (concept 2012)
Prospectus FPIK Brawijaya university  (concept 2012)Prospectus FPIK Brawijaya university  (concept 2012)
Prospectus FPIK Brawijaya university (concept 2012)fikrul islamy
 
Lirik & chord lagu mix 1
Lirik & chord lagu mix 1Lirik & chord lagu mix 1
Lirik & chord lagu mix 1fikrul islamy
 
Lirik & chord lagu mix 3
Lirik & chord lagu mix  3Lirik & chord lagu mix  3
Lirik & chord lagu mix 3fikrul islamy
 
Koreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasiKoreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasifikrul islamy
 
Teknologi gis dan analisis spasial di zona pesisir manajemen
Teknologi gis dan analisis spasial di zona pesisir manajemenTeknologi gis dan analisis spasial di zona pesisir manajemen
Teknologi gis dan analisis spasial di zona pesisir manajemenfikrul islamy
 
Secrets of supercomputing
Secrets of supercomputingSecrets of supercomputing
Secrets of supercomputingfikrul islamy
 
Pendekatan unt-membangun-sistem
Pendekatan unt-membangun-sistemPendekatan unt-membangun-sistem
Pendekatan unt-membangun-sistemfikrul islamy
 
Koreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasiKoreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasifikrul islamy
 
Bangun datar dan bangun datar
Bangun datar dan bangun datarBangun datar dan bangun datar
Bangun datar dan bangun datarfikrul islamy
 
Pengolahan sst satelit modis
Pengolahan sst satelit modisPengolahan sst satelit modis
Pengolahan sst satelit modisfikrul islamy
 
Coastal zone management ruang pesisir
Coastal zone management ruang pesisirCoastal zone management ruang pesisir
Coastal zone management ruang pesisirfikrul islamy
 
Peta dan-penggunaanya
Peta dan-penggunaanyaPeta dan-penggunaanya
Peta dan-penggunaanyafikrul islamy
 

Mais de fikrul islamy (20)

Akar persamaan2 metnum
Akar persamaan2 metnumAkar persamaan2 metnum
Akar persamaan2 metnum
 
sedimen transport
sedimen transportsedimen transport
sedimen transport
 
Marine mammals
Marine mammalsMarine mammals
Marine mammals
 
Convert an auto cad file to a shapefile and georeferencing
Convert an auto cad file to a shapefile and georeferencingConvert an auto cad file to a shapefile and georeferencing
Convert an auto cad file to a shapefile and georeferencing
 
Kemas & eclogite #GEOLOGI
Kemas & eclogite #GEOLOGI Kemas & eclogite #GEOLOGI
Kemas & eclogite #GEOLOGI
 
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...
PERMODELAN TSUNAMI UNTUK PENENTUAN ZONA MITIGASI DAN ANALISIS DAMPAK TERHADAP...
 
SIM
SIMSIM
SIM
 
Prospectus FPIK Brawijaya university (concept 2012)
Prospectus FPIK Brawijaya university  (concept 2012)Prospectus FPIK Brawijaya university  (concept 2012)
Prospectus FPIK Brawijaya university (concept 2012)
 
Lirik & chord lagu mix 1
Lirik & chord lagu mix 1Lirik & chord lagu mix 1
Lirik & chord lagu mix 1
 
Lirik & chord lagu mix 3
Lirik & chord lagu mix  3Lirik & chord lagu mix  3
Lirik & chord lagu mix 3
 
Koreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasiKoreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasi
 
Teknologi gis dan analisis spasial di zona pesisir manajemen
Teknologi gis dan analisis spasial di zona pesisir manajemenTeknologi gis dan analisis spasial di zona pesisir manajemen
Teknologi gis dan analisis spasial di zona pesisir manajemen
 
Secrets of supercomputing
Secrets of supercomputingSecrets of supercomputing
Secrets of supercomputing
 
Quali tas movie
Quali tas movieQuali tas movie
Quali tas movie
 
Pendekatan unt-membangun-sistem
Pendekatan unt-membangun-sistemPendekatan unt-membangun-sistem
Pendekatan unt-membangun-sistem
 
Koreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasiKoreksi geometrik peta (arc gis) registrasi
Koreksi geometrik peta (arc gis) registrasi
 
Bangun datar dan bangun datar
Bangun datar dan bangun datarBangun datar dan bangun datar
Bangun datar dan bangun datar
 
Pengolahan sst satelit modis
Pengolahan sst satelit modisPengolahan sst satelit modis
Pengolahan sst satelit modis
 
Coastal zone management ruang pesisir
Coastal zone management ruang pesisirCoastal zone management ruang pesisir
Coastal zone management ruang pesisir
 
Peta dan-penggunaanya
Peta dan-penggunaanyaPeta dan-penggunaanya
Peta dan-penggunaanya
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Último (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Python arch wiki

  • 1. Python - ArchWiki 1 of 6 https://wiki.archlinux.org/index.php/Python Python From ArchWiki Python (http://www.python.org) "is a remarkably powerful dynamic programming language that is used in a wide variety of application domains. Python is often compared to Tcl, Perl, Ruby, Scheme or Java." Related articles Python Package Guidelines mod_python Contents Python VirtualEnv 1 Installation 1.1 Python 3 1.2 Python 2 2 Dealing with version problem in build scripts 3 Integrated Development Environments 3.1 Eclipse 3.2 Eric 3.3 IEP 3.4 Ninja 3.5 Spyder 4 Getting easy_install 5 Getting completion in Python shell 6 Widget bindings 7 Old versions 8 More Resources 9 For Fun Installation There are currently two versions of Python: Python 3 (which is the default) and the older Python 2. Python 3 Python 3 is the latest version of the language, and is incompatible with Python 2. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been reorganized in a few prominent places. For an overview of the differences, visit Python2orPython3 (http://wiki.python.org/moin/Python2orPython3) and their relevant chapter (http://getpython3.com /diveintopython3/porting-code-to-python-3-with-2to3.html) in Dive into Python 3. To install the latest version of Python 3, install the python (https://www.archlinux.org/packages /?name=python) package from the official repositories. If you would like to build the latest RC/betas from source, visit Python Downloads (http://www.python.org /download/). The Arch User Repository also contains good PKGBUILDs. If you do decide to build the RC, note that the binary (by default) installs to /usr/local/bin/python3.x . 1/29/2014 12:40 PM
  • 2. Python - ArchWiki 2 of 6 https://wiki.archlinux.org/index.php/Python Python 2 To install the latest version of Python 2, install the python2 (https://www.archlinux.org/packages /?name=python2) package from the official repositories. Python 2 will happily run alongside Python 3. You need to specify python2 in order to run this version. Any program requiring Python 2 needs to point to /usr/bin/python2 , instead of /usr/bin/python , which points to Python 3. To do so, open the program or script in a text editor and change the first line. The line will show one of the following: #!/usr/bin/env python or #!/usr/bin/python In both cases, just change python to python2 and the program will then use Python 2 instead of Python 3. Another way to force the use of python2 without altering the scripts is to call it explicitely with python2, i.e. python2 myScript.py Finally, you may not be able to control the script calls, but there is a way to trick the environment. It only works if the scripts use #!/usr/bin/env python , it won't work with #!/usr/bin/python . This trick relies on env searching for the first corresponding entry in the PATH variable. First create a dummy folder. $ mkdir ~/bin Then add a symlink 'python' to python2 and the config scripts in it. $ ln -s /usr/bin/python2 ~/bin/python $ ln -s /usr/bin/python2-config ~/bin/python-config Finally put the new folder at the beginning of your PATH variable. $ export PATH=~/bin:$PATH Note that this change is not permanent and is only active in the current terminal session. To check which python interpreter is being used by env , use the following command: $ which python A similar approach in tricking the environment, which also relies on #!/usr/bin/env python to be called by the script in question, is to use a Virtualenv. When a Virtualenv is activated, the Python executable pointed to by $PATH will be the one the Virtualenv was installed with. Therefore, if the Virtualenv is 1/29/2014 12:40 PM
  • 3. Python - ArchWiki 3 of 6 https://wiki.archlinux.org/index.php/Python installed with Python 2, python will refer to Python 2. To start, install python2-virtualenv (https://www.archlinux.org/packages/?name=python2-virtualenv). # pacman -S python2-virtualenv Then create the Virtualenv. $ virtualenv2 venv # Creates a directory, venv/, containing the Virtualenv Activate the Virtualenv, which will update $PATH to point at Python 2. Note that this activation is only active for the current terminal session. $ source venv/bin/activate The desired script should then run using Python 2. Dealing with version problem in build scripts Many projects' build scripts assume python to be Python 2, and that would eventually result in an error typically complaining that print 'foo' is invalid syntax. Luckily, many of them call python in the $PATH instead of hardcoding #!/usr/bin/python in the shebang line, and the Python scripts are all contained within the project tree. So, instead of modifying the build scripts manually, there is an easy workaround. Just create /usr/local/bin/python with content like this: /usr/local/bin/python #!/bin/bash script=`readlink -f -- "$1"` case "$script" in (/path/to/project1/*|/path/to/project2/*|/path/to/project3*) exec python2 "$@" ;; esac script=`readlink -f -- "$2"` case "$script" in (/path/to/project1/*|/path/to/project2/*|/path/to/project3*) exec python2 "$@" ;; esac exec python3 "$@" Where /path/to/project1/*|/path/to/project2/*|/path/to/project3* is a list of patterns separated by | matching all project trees. Don't forget to make it executable: # chmod +x /usr/local/bin/python Afterwards scripts within the specified project trees will be run with Python 2. Integrated Development Environments 1/29/2014 12:40 PM
  • 4. Python - ArchWiki 4 of 6 https://wiki.archlinux.org/index.php/Python There are some IDEs for Python available in the official repositories. Eclipse Eclipse supports both Python 2.x and 3.x series by using the PyDev extension. Eric For the latest Python 3 compatible version, install the eric (https://www.archlinux.org/packages /?name=eric) package. Version 4 of Eric is Python 2 compatible and can be installed with the eric4 (https://www.archlinux.org/packages/?name=eric4) package. These IDEs can also handle Ruby. IEP IEP is an interactive (e.g. MATLAB) python IDE with basic debugging capabilities and is especially suitable for scientific computing. It is provided by the package iep (https://aur.archlinux.org/packages /iep/). Ninja The Ninja IDE is provided by the package ninja-ide (https://www.archlinux.org/packages /?name=ninja-ide). Spyder Spyder (previously known as Pydee) is a powerful interactive development environment for the Python language with advanced editing, interactive testing, debugging and introspection features. It focuses on scientific computations, providing a matlab-like environment. It can be installed with the package spyder (https://aur.archlinux.org/packages/spyder/) Getting easy_install The easy_install tool is available in the package python-setuptools (https://www.archlinux.org /packages/?name=python-setuptools). Getting completion in Python shell Copy this into Python's interactive shell /usr/bin/python import rlcompleter import readline readline.parse_and_bind("tab: complete") 1/29/2014 12:40 PM
  • 5. Python - ArchWiki 5 of 6 https://wiki.archlinux.org/index.php/Python Source (http://algorithmicallyrandom.blogspot.com.es/2009/09/tab-completion-in-python-shell-how-to.html) Widget bindings The following widget toolkit bindings are available: TkInter — Tk bindings http://wiki.python.org/moin/TkInter || standard module pyQt — Qt bindings http://www.riverbankcomputing.co.uk/software/pyqt/intro || python2-pyqt4 (https://www.archlinux.org/packages/?name=python2-pyqt4) python2-pyqt5 (https://www.archlinux.org/packages/?name=python2-pyqt5) python-pyqt4 (https://www.archlinux.org/packages/?name=python-pyqt4) python-pyqt5 (https://www.archlinux.org/packages/?name=python-pyqt5) pySide — Qt bindings http://www.pyside.org/ || python2-pyside (https://aur.archlinux.org/packages/python2pyside/) python-pyside (https://aur.archlinux.org/packages/python-pyside/) pyGTK — GTK+ 2 bindings http://www.pygtk.org/ || pygtk (https://www.archlinux.org/packages/?name=pygtk) PyGObject — GTK+ 2/3 bindings via GObject Introspection https://wiki.gnome.org/PyGObject/ || python2-gobject2 (https://www.archlinux.org/packages /?name=python2-gobject2) python2-gobject (https://www.archlinux.org/packages /?name=python2-gobject) python-gobject2 (https://www.archlinux.org/packages /?name=python-gobject2) python-gobject (https://www.archlinux.org/packages /?name=python-gobject) wxPython — wxWidgets bindings http://wxpython.org/ || wxpython (https://www.archlinux.org/packages/?name=wxpython) To use these with Python, you may need to install the associated widget kits. Old versions Old versions of Python are available via the AUR and may be useful for historical curiosity, old applications that don't run on current versions, or for testing Python programs intended to run on a distribution that comes with an older version (eg, RHEL 5.x has Python 2.4, or Ubuntu 12.04 has Python 3.1): python15 (https://aur.archlinux.org/packages/python15/): python16 python24 python25 python26 python30 Python 1.5.2 (https://aur.archlinux.org/packages/python16/): Python 1.6.1 (https://aur.archlinux.org/packages/python24/): Python 2.4.6 (https://aur.archlinux.org/packages/python25/): Python 2.5.6 (https://aur.archlinux.org/packages/python26/): Python 2.6.8 (https://aur.archlinux.org/packages/python30/): Python 3.0.1 1/29/2014 12:40 PM
  • 6. Python - ArchWiki 6 of 6 https://wiki.archlinux.org/index.php/Python python31 (https://aur.archlinux.org/packages/python31/): Python 3.1.5 python32 (https://aur.archlinux.org/packages/python32/): Python 3.2.3 As of November 2012, Python upstream only supports Python 2.6, 2.7, 3.1, 3.2, and 3.3 for security fixes. Using older versions for Internet-facing applications or untrusted code may be dangerous and is not recommended. Extra modules/libraries for old versions of Python may be found on the AUR by searching for python(version without decimal), eg searching for "python26" for 2.6 modules. More Resources Learning Python (http://shop.oreilly.com/product/9780596158071.do) is one of the most comprehensive, up to date, and well-written books on Python available today. Dive Into Python (http://www.diveintopython.net/) is an excellent (free) resource, but perhaps for more advanced readers and has been updated for Python 3 (http://diveintopython3.ep.io/). A Byte of Python (http://www.swaroopch.com/notes/Python) is a book suitable for users new to Python (and scripting in general). Learn Python The Hard Way (http://learnpythonthehardway.org) the best intro to programming. facts.learnpython.org (http://facts.learnpython.org) nice site to learn python. Crash into Python (http://stephensugden.com/crash_into_python/) Also known as Python for Programmers with 3 Hours, this guide gives experienced developers from other languages a crash course on Python. Beginning Game Development with Python and Pygame: From Novice to Professional (http://www.apress.com/book/view/9781590598726) for games For Fun Try the following snippets from Python's interactive shell: >>> import this >>> from __future__ import braces >>> import antigravity Retrieved from "https://wiki.archlinux.org/index.php?title=Python&oldid=294398" Category: Programming language This page was last modified on 25 January 2014, at 21:30. Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted. 1/29/2014 12:40 PM