install packages with pip to older Python versions

David Robinow drobinow at gmail.com
Tue Sep 27 14:15:10 CEST 2011


On Mon, Sep 26, 2011 at 4:39 PM, Jabba Laci <jabba.laci at gmail.com> wrote:
> Hi,
>
> I have Python 2.7 on my system. Today I wanted to try Google App
> Engine but it runs on Python 2.5 at Google so I installed this version
> on my machine next to v2.7 to avoid compatibility problems. However,
> when I start the Python shell v2.5 and try to import something from
> the GAE SDK (for instance "from google.appengine.ext import webapp"),
> I get an error: "ImportError: No module named webob". (Note that with
> v2.7 I don't have this problem.)
>
> So, how can I install packages for a specific version of Python (here,
> v2.5)? With 2.7 I use "sudo pip install <package_name>".
sudo pip-2.5 install <package_name>

(You may need to install pip in your 2.5)



More information about the Python-list mailing list