4

I need to use easy_install to install a package. I installed the enthought distribution, and popped into IDLE to say:

>>> easy_install SQLobject
SyntaxError: invalid syntax

What am I doing wrong? easy_install certainly exists, as does the package. help('easy_install') gives me some basic help. import easy_install doesn't change things either.

Any hints? I know I'm missing something really basic here.

Soviut
  • 88,194
  • 49
  • 192
  • 260
  • I've clarified your question title. Can we please stop using the words "fail", "win" and "so much awesome", they're not funny and they're really annoying when they're peppered through questions. – Soviut Mar 09 '09 at 03:03

1 Answers1

19

easy_install is a shell command. You don't need to put it in a python script.

easy_install SQLobject

Type that straight into a bash (or other) shell, as long as easy_install is in your path.

Matthew Schinckel
  • 35,041
  • 6
  • 86
  • 121