Difference between revisions of "Python"

From TSG Doc
Jump to navigation Jump to search
Line 18: Line 18:
  
 
=== Check Windows Handlers ===
 
=== Check Windows Handlers ===
 +
 +
Check the Handlers by opening the Windows registry editor.
 +
 +
Windows Registry Editor Version 5.00
 +
 +
[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command]
 +
@="\"C:\\Python27\\python.exe\" \"%1\" %*"
 +
 +
Windows Registry Editor Version 5.00
 +
 +
[HKEY_CLASSES_ROOT\Python.File\shell\open\command]
 +
@="\"C:\\Python27\\python.exe\" \"%1\" %*"
 +
 +
Windows Registry Editor Version 5.00
 +
 +
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command]
 +
@="\"C:\\Python27\\python.exe\" \"%1\" %*"
 +
 +
Windows Registry Editor Version 5.00
 +
 +
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command]
 +
@="\"C:\\Python27\\python.exe\" \"%1\" %*"
  
 
=== Execute Python TestArgs.py ===
 
=== Execute Python TestArgs.py ===
  
 
= Linux Installation =
 
= Linux Installation =

Revision as of 11:23, 4 August 2014

Windows Installation

Windows Installation Python 2.7

You can download the Win32 installer by clicking on the following link: https://www.python.org/downloads/

Set Windows Environment Variables

Computer --> Properties --> Advanced settings --> Environment Variables.

Add the following Path:

C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;

Windows Installation PIP package manager

Windows Installation Setup-Tools (easy_install)

Check Windows Handlers

Check the Handlers by opening the Windows registry editor.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Python.CompiledFile\shell\open\command] @="\"C:\\Python27\\python.exe\" \"%1\" %*"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Python.File\shell\open\command] @="\"C:\\Python27\\python.exe\" \"%1\" %*"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.CompiledFile\shell\open\command] @="\"C:\\Python27\\python.exe\" \"%1\" %*"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command] @="\"C:\\Python27\\python.exe\" \"%1\" %*"

Execute Python TestArgs.py

Linux Installation