Python Install Help

apps

#1

How do I install python. I just want to activate the one already installed(I haven’t installed anything, the Wiki said Dreamhost already has it installed) Thanks :slight_smile:


#2

Python is installed at /usr/bin/python. What do you want to do with it?

emufarmers.com
Very little to do with either emus or farmers!


#3

Im just trying to get a Python script to work…


#4

I think Emufarmers was trying to tell you that python should already be on your path and ready to go. There should be no need to install another copy.

typing “python” at the login prompt I’m greeted with "Python 2.3.5

Any chance you could show us the first couple of lines of your script? This would allow us to help you a lot more.

(Theory, your “shebang” #! does not point to the installed version of python)

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!


#5

"
#!/usr/bin/python

def main():
print "Content-type: text/html"
print
print ""
print "Hello World from Python"
print ""
print "Standard Hello World from a Python CGI Script"
print “”

if name == “main”:
main()
"

Without the "s of course. It should be already installed so what am I doing wrong lol(thats from the dreamhost wiki)