[Tutor] easy_install question

Steven D'Aprano steve at pearwood.info
Fri Oct 28 19:18:51 CEST 2011


Eric Schles wrote:
> Hello,
> 
> This is my first time using this service so I am unsure what proper
> formatting should be.  In any case here is my question.
> 
> I just downloaded EasyInstall here:
> http://peak.telecommunity.com/DevCenter/EasyInstall
> 
> In the example section under
> Downloading and Installing a
> Package<http://peak.telecommunity.com/DevCenter/EasyInstall#id6>
> which is in the website listed, there is an example called example 1.
> 
> I can't get it to work.  I was able to import easy_install into my python
> GUI.  But whenever I try using it I get the following message:
>>>> easy_install SQLObject
> SyntaxError: invalid syntax


You are running Easy Install from inside Python, but using non-Python 
syntax.

Normally you would run Easy Install from the shell. Under Linux, open 
your favourite xterm, console or terminal window. You should have a $ 
prompt instead of the Python prompt >>>.

At the shell prompt, type:

easy_install SQLObject

and press the Enter key, and it should just work. (If you get 
"Permission Denied" errors, you may need to use sudo or run the command 
as the root user.)

Under Windows will be similar, using command.com or cmd.exe.


-- 
Steven


More information about the Tutor mailing list