Install a specific version with easy_install

I am trying to install lxml . I looked at the website and version 2.2.8 looked reasonable for me, but when I did easy_install lxml , it installed version 2.3.beta1, which is actually not the way I think.

What is the best way to fix this and how can I get easy_install to install a specific version?

(Mac os x 10.6)

+69
python easy-install version
Sep 30 '10 at 17:05
source share
3 answers

I believe the way to specify the version would be as follows:

 easy_install lxml==2.2.8 

I (and most of the other Python users I suspect) stopped using easy_install and started using pip some time ago, so the solution is in these terms:

 easy_install pip pip install lxml==2.2.8 

( pip has several advantages, including the uninstall command)

+121
Sep 30 '10 at 17:08
source share

From the easy_install documentation:

easy_install PackageName==1.2.3

+18
Sep 30 '10 at 17:09
source share

You should do something like this:

 easy_install "lxml==2.2.8" 
+6
Sep 30 '10 at 17:09
source share



All Articles