Hosting accounts running Hosting Configuration 2.0 and above have the option of running Python versions 2.2, 2.3, and 2.4. Files running under different versions of Python can all use the same .py extension if the version is specified in the script itself. To specify the version, type one of the following [...]
Use the following relay server in your Python code:
relay-hosting.secureserver.net
You do not need to provide a user name and password for this relay server.
Check that your Python script is in the “unix text file format.” If it is in a “DOS/Windows text file format,” Python will not interpret it correctly.
To solve this problem, upload your Python script in “ASCII” mode instead of “binary” mode. Your FTP server should translate your script to the appropriate format.
Python is a popular interpreted, interactive, object-oriented programming language similar to Perl. You can use Python on your CGI-enabled Linux hosting account. Python is known for its versatility and very clear syntax.
For more information about Python, visit the Python website.
You can use Python with CGI on our shared hosting accounts to create more interactive websites.
To use Python, you will need to know where Python is installed on our servers. The path to Python on our servers is:
/usr/bin/python