how to install packages o python?
Question: Mac OSX 10.6.8 Python 2.7

Hi guys,

I just recently started programming with Python using the "Think Python" by
Allen Downey. In Chapter 4, the first case study, he recommends to install a
package called swampy...so basically I´m stuck here. For trouble shooting
Downey recommends:

  * import swampy.TurtleWorld -> doesnt work
  * pip install swampy -> command not found(Could`t also install pip)

After typing

  * sudo python setup.py install 

I get

    
    
    /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory
    

Then I unzip the package swampy and thought to drag&drop it into the
appropriate directory, however my directory ends with
`System/Library/Frameworks/Python.framework/Versions/2.7/Resources` here I
have 3 objects "`English.Iproj`" "`inof.plist`" and "`Python`"

Does anybody have some suggestions how to install that package?

THX a lot


Answer: you shall do:

    
    
    sudo easy_install pip
    sudo pip install swampy
    

