Line 1: |
Line 1: |
| {{Infobox software | | {{Infobox software |
| | name = Python | | | name = Python |
− | | logo = Python-logo-notext.svg | + | | logo = Python-logo-generic.svg |
− | | screenshot = python-logo-master-v3-TM.png | + | | logo size = 180px |
| + | | logo alt = Python(tm) |
| | caption = | | | caption = |
| | developer = | | | developer = |
Line 18: |
Line 19: |
| | platform = | | | platform = |
| | website = [http://www.python.org python.org] | | | website = [http://www.python.org python.org] |
− | | resources = | + | | resources = {{Infobox tsg |
| + | | child = yes |
| + | | header2 = Workshop |
| + | | data2 = {{bulleted list |
| + | | [[Workshop: Python for behavioural scientists|Python for behavioural scientists]] |
| + | }} |
| + | }} |
| | | |
| }} | | }} |
| | | |
− | [[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a type of snake, but one is arguably more suitable for behavioral research than the other. | + | [[wikipedia:Python_(programming_language)|Python]] is a general-purpose, high-level programming language. It is also a [[wikipedia:Python_%28genus%29|type of snake]], but one is arguably more relevant to your research than the other. |
| | | |
| <!-- Table of Contents will be generated here --> | | <!-- Table of Contents will be generated here --> |
Line 29: |
Line 36: |
| | | |
| ===Windows (32 bit)=== | | ===Windows (32 bit)=== |
− | # Download the [https://www.python.org/downloads/ Win32 installer] | + | # Download the '''[https://www.python.org/downloads/ Win32 installer]''' |
| # Double-click on the executable and follow the steps on your screen. | | # Double-click on the executable and follow the steps on your screen. |
| | | |
Line 47: |
Line 54: |
| | | |
| ===Package Management=== | | ===Package Management=== |
− | After Python is installed, you can use [[wikipedia:Pip_(package_manager)|pip]] to install your required packages. pip is included with Python 2.7.9. For older versions, use the following steps to install: | + | |
| + | ==== pip ==== |
| + | After Python is installed, you can use [[wikipedia:Pip_(package_manager)|pip]] to install your required packages. '''pip is included with Python 2.7.9 or greater'''. For older versions, use the following steps to install: |
| | | |
| # Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py] | | # Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py] |
Line 59: |
Line 68: |
| This location may differ if you have installed Python somewhere else. | | This location may differ if you have installed Python somewhere else. |
| | | |
− | ===List of Python Packages=== | + | ==== Setuptools ==== |
| + | For package management with setuptools, install setuptools using the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">pip install -U setuptools</code> |
| | | |
− | '''Psychopy Essential Packages'''
| + | To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\easy_install PACKAGE_NAME</code><br/> |
− | | + | Replace PACKAGE_NAME with the name of the package of choice. |
− | Click [http://www.psychopy.org/installation.html here] for more information
| |
− | {| class="wikitable"
| |
− | |-
| |
− | ! Python Library
| |
− | ! Version
| |
− | | |
− | |-
| |
− | | numpy || version 0.9.6 or greater
| |
− | |-
| |
− | | scipy || version 0.4.8 or greater
| |
− | |-
| |
− | | pyglet || version 1.1.4, not version 1.2
| |
− | |-
| |
− | | wxPython || version 2.8.10 or 2.8.11, not 2.9
| |
− | |-
| |
− | | Python Imaging Library || sudo easy_install PIL
| |
− | |-
| |
− | | matplotlib || for plotting and fast polygon routines
| |
− | |-
| |
− | | lxml || needed for loading/saving builder experiment files
| |
− | |-
| |
− | | openpyxl || (for loading params from xlsx files)
| |
− | |-
| |
− | | pyo || sound, version 0.6.2 or higher, compile with —-no-messages
| |
− | |}
| |
− | | |
− | '''Installed packages'''
| |
| | | |
| + | ===List of Python Packages=== |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
Line 98: |
Line 82: |
| ! Installer Type | | ! Installer Type |
| ! URL | | ! URL |
− |
| |
| |- | | |- |
| | PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ | | | PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ |
Line 135: |
Line 118: |
| |- | | |- |
| | FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]] | | | FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]] |
| + | |- |
| + | | Psignifit || || || || |
| |- | | |- |
| | Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org | | | Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org |
| |} | | |} |
| | | |
− | === Setup-Tools ===
| + | For Psychopy dependancies, check the [[Psychopy]] page. |
− | To install setup-tools, execute the following command in CMD: <code style="background-color:#000; color:#fff; padding:1px 3px;">pip install -U setuptools</code>
| |
− | | |
| | | |
| === Windows Handlers === | | === Windows Handlers === |
Line 185: |
Line 168: |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | ==See Also== <!-- Optional --> | + | ==See Also== |
| *[[Psychopy]] | | *[[Psychopy]] |
− | | + | *[[Workshop: Python for social scientists]] |
− | ==References== | + | <!-- |
− | <references /> | + | *[[Workshop: Python for behavioural scientists]] |
| + | ==References== |
| + | <references /> --> |
| | | |
| ==External Links== | | ==External Links== |
| *{{Official website|http://www.python.org}} | | *{{Official website|http://www.python.org}} |