http://tsgdoc.socsci.ru.nl/index.php?title=Python/Legacy&feed=atom&action=history
Python/Legacy - Revision history
2024-03-29T08:05:37Z
Revision history for this page on the wiki
MediaWiki 1.35.4
http://tsgdoc.socsci.ru.nl/index.php?title=Python/Legacy&diff=5197&oldid=prev
E.vandenberge at 17:00, 21 January 2021
2021-01-21T17:00:47Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:00, 21 January 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l125" >Line 125:</td>
<td colspan="2" class="diff-lineno">Line 125:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''C:\Windows\System32''' or </div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''C:\Windows\System32''' or </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''C:\Windows\SysWOW64'''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''C:\Windows\SysWOW64'''</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">== Usage ==</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">===Example: TestArgs.py===</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">Execute the following script within the commandline (CMD): <code style="background-color:#000; color:#fff; padding:1px 3px;">python testArgs.py a.</code><br/></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">You should see the following result:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><syntaxhighlight lang="matlab" overflow:auto;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">number of argument: 2</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> argv[0]: ./testArgs.py</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> argv[1]: a</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></syntaxhighlight></del></div></td><td colspan="2"> </td></tr>
</table>
E.vandenberge
http://tsgdoc.socsci.ru.nl/index.php?title=Python/Legacy&diff=5193&oldid=prev
E.vandenberge at 16:49, 21 January 2021
2021-01-21T16:49:00Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:49, 21 January 2021</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l137" >Line 137:</td>
<td colspan="2" class="diff-lineno">Line 137:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> argv[1]: a</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> argv[1]: a</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></syntaxhighlight></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==See Also==</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">*[[Psychopy]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">*[[Workshop: Python for social scientists]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><!--</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">*[[Workshop: Python for behavioural scientists]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"> ==References==</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><references /> --></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">==External Links== </del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">*{{Official website|http://www.python.org}}</del></div></td><td colspan="2"> </td></tr>
</table>
E.vandenberge
http://tsgdoc.socsci.ru.nl/index.php?title=Python/Legacy&diff=5192&oldid=prev
E.vandenberge: Created page with "This page contains documentation for older, obsolete versions of Python. For info on the latest version, visit Python =Python 2.7= ==Installation== ===Windows (32 bit)=..."
2021-01-21T16:48:27Z
<p>Created page with "This page contains documentation for older, obsolete versions of Python. For info on the latest version, visit <a href="/index.php/Python" title="Python">Python</a> =Python 2.7= ==Installation== ===Windows (32 bit)=..."</p>
<p><b>New page</b></p><div>This page contains documentation for older, obsolete versions of Python. For info on the latest version, visit [[Python]]<br />
<br />
=Python 2.7=<br />
<br />
==Installation==<br />
<br />
===Windows (32 bit)===<br />
# Download the '''[https://www.python.org/downloads/ Win32 installer]'''<br />
# Double-click on the executable and follow the steps on your screen.<br />
<br />
==Configuration==<br />
=== Windows Environment Variables ===<br />
<pre>Computer --> Properties --> Advanced settings --> Environment Variables.</pre><br />
<br />
[[image:python_env.jpg]]<br />
<br />
Add the following Path:<br />
<br />
<pre>C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;</pre><br />
<br />
[[image:python_path.jpg]]<br />
<br />
[[image:python_path2.jpg]]<br />
<br />
===Package Management===<br />
<br />
==== pip ====<br />
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:<br />
<br />
# Download [https://raw.github.com/pypa/pip/master/contrib/get-pip.py get-pip.py]<br />
# Execute get-pip by entering the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">python get-pip.py</code> <br />
<br />
To install a package, simply execute the following command: <code style="background-color:#000; color:#fff; padding:1px 3px;">c:\pip install PACKAGE_NAME</code><br/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
'''Note:''' By default, packages are installed in the following folder (Windows):<br />
<pre>C:\Python27\Lib\site-packages</pre><br />
This location may differ if you have installed Python somewhere else.<br />
<br />
==== Setuptools ====<br />
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><br />
<br />
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/><br />
Replace PACKAGE_NAME with the name of the package of choice.<br />
<br />
===List of Python Packages===<br />
{| class="wikitable"<br />
|-<br />
! Python Library <br />
! Description <br />
! Installed<br />
! Installer Type<br />
! URL<br />
|-<br />
| PIL || Python Image Library || style="background-color:#9F9;" | Yes || Package Manager || http://www.pythonware.com/products/pil/ <br />
|-<br />
| SciPy || Python-based ecosystem of open-source software for mathematics, science, and engineering. || style="background-color:#9F9;" | Yes || Package Manager || http://www.scipy.org/install.html<br />
|-<br />
| PyWin32 || Python Extensions for Windows || style="background-color:#9F9;" | Yes || Windows Installer || http://sourceforge.net/projects/pywin32/files/pywin32/<br />
|-<br />
| PySerial || Serial access for Python || style="background-color:#9F9;" | Yes || Windows Installer || https://pypi.python.org/pypi/pyserial<br />
|-<br />
| wxPython || GUI Toolkit for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.wxpython.org/download.php#msw<br />
|-<br />
| matplotlib || 2D plotting library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://matplotlib.org/downloads.html<br />
|-<br />
| pyo || dedicated Python module for digital signal processing || style="background-color:#9F9;" | Yes || Windows Installer || http://ajaxsoundstudio.com/software/pyo/<br />
|-<br />
| Opencv2 || Open Source Computer Vision is a library of programming functions mainly aimed at real-time computer vision || style="background-color:#9F9;" | Yes || Windows Installer || http://opencv.org/<br />
|-<br />
| PyQt || Python binding of the cross-platform GUI toolkit Qt || style="background-color:#9F9;" | Yes || Windows Installer || http://www.riverbankcomputing.co.uk/software/pyqt/download5<br />
|-<br />
| PyQtGraph || Scientific Graphics and GUI Library for Python || style="background-color:#9F9;" | Yes || Windows Installer || http://www.pyqtgraph.org/ <br />
|-<br />
| LXML || library for processing XML and HTML in the Python language || style="background-color:#9F9;" | Yes || Package Manager || http://lxml.de/<br />
|-<br />
| PyGame || Pygame is a set of Python modules designed for writing games. || style="background-color:#9F9;" | Yes || Windows installer || http://pygame.org/news.html<br />
|-<br />
| PANDAS || Python Data Analysis Library || style="background-color:#9F9;" | Yes || Package Manager || http://pandas.pydata.org/<br />
|-<br />
| Expyriment || A Python library for congnitive and neuroscientific experiments. || style="background-color:#9F9;" | Yes || Package Manager || http://www.expyriment.org/<br />
|-<br />
| Pyparse || Parse text files in an easier and more maintainable manner || style="background-color:#9F9;" | Yes || Package Manager || https://pypi.python.org/pypi/PyParse/1.1.7<br />
|-<br />
| AVbin || media decoding/decompression library || style="background-color:#9F9;" | Yes || Windows Installer || https://code.google.com/p/avbin/<br />
|-<br />
| Pyglet || a cross-platform windowing and multimedia library for Python. || style="background-color:#9F9;" | Yes || Manual Install || [[File:Pyglet-1.1.4.zip]]<br />
|-<br />
| FreeType || Library to Render Fonts || style="background-color:#9F9;" | Yes || Manual Install || [[file:freetype.zip]]<br />
|-<br />
| Psignifit || || || ||<br />
|-<br />
| Psychopy || Psychology Software in Python || style="background-color:#9F9;" | Yes || Package Manager || http://www.psychopy.org<br />
|}<br />
<br />
For Psychopy dependancies, check the [[Psychopy]] page.<br />
<br />
=== Windows Handlers ===<br />
Check the Handlers by opening the Windows registry editor.<br />
<syntaxhighlight lang="reg" overflow:auto;"><br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]<br />
@="\"C:\\Python27\\python.exe\" \"%1\" %*"<br />
<br />
</syntaxhighlight><br />
<br />
<br />
=== Python DLL Files ===<br />
<br />
* '''C:\Python27\DLLs\'''<br />
* Path Within the script.<br />
* '''C:\Windows\System32''' or <br />
* '''C:\Windows\SysWOW64'''<br />
<br />
== Usage ==<br />
<br />
===Example: TestArgs.py===<br />
Execute the following script within the commandline (CMD): <code style="background-color:#000; color:#fff; padding:1px 3px;">python testArgs.py a.</code><br/><br />
You should see the following result:<br />
<br />
<syntaxhighlight lang="matlab" overflow:auto;"><br />
number of argument: 2<br />
argv[0]: ./testArgs.py<br />
argv[1]: a<br />
</syntaxhighlight><br />
<br />
==See Also==<br />
*[[Psychopy]]<br />
*[[Workshop: Python for social scientists]]<br />
<!--<br />
*[[Workshop: Python for behavioural scientists]]<br />
==References==<br />
<references /> --><br />
<br />
==External Links== <br />
*{{Official website|http://www.python.org}}</div>
E.vandenberge