Search code examples
pythoneasy-install

easy_install latest version github


I'm using Python 2.7 on Windows.

My question relates to using and updating the twitter package (http://mike.verdone.ca/twitter/) - currently installed version 1.9.1

When Twitter gives a ratelimited response the twitter package gives an error httplib.IncompletedRead. This problem seems to have been addressed in the version of api.py on Github. But the downloaded egg file I have on my system doesn't have that latest version in.

When I try

easy_install --upgrade twitter 

I get response:

Processing twitter-1.9.1-py2.7.egg
twitter 1.9.1 is already the active version in easy-install.pth

So how do I get an egg file onto my system that includes the latest api.py, so that I don't get the IncompleteRead error?

Thanks for any help


Solution

  • You can install directly from GitHub with pip, but you perhaps have to force the upgrade:

    pip install -U --force-reinstall git+git://github.com/sixohsix/twitter.git#egg=twitter
    

    This does require that you have git itself installed as well.

    Alternatively, you can install from the GitHub supplied archives:

    pip install -U --force-reinstall https://github.com/sixohsix/twitter/zipball/master#egg=twitter
    

    or

    pip install -U --force-reinstall https://github.com/sixohsix/twitter/tarball/master#egg=twitter