Changes

Jump to navigation Jump to search
570 bytes added ,  16:13, 23 February 2018
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 58: Line 67:  
<pre>C:\Python27\Lib\site-packages</pre>
 
<pre>C:\Python27\Lib\site-packages</pre>
 
This location may differ if you have installed Python somewhere else.
 
This location may differ if you have installed Python somewhere else.
 +
 +
==== 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>
 +
 +
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.
    
===List of Python Packages===
 
===List of Python Packages===
   
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 68: 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 105: 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
 
|}
 
|}
   −
{| class="wikitable"
+
For Psychopy dependancies, check the [[Psychopy]] page.
|-
  −
! Python Library 
  −
! Description
  −
! Installed
  −
! Installer Type
  −
! URL
  −
 
  −
|-
  −
|
  −
|-
  −
|
  −
|}
  −
 
  −
=== Setup-Tools ===
  −
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 169: 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}}

Navigation menu