Install particular version with easy_install

和自甴很熟 提交于 2019-12-18 10:22:02

问题


I'm trying to install lxml. I've had a look at the website, and version 2.2.8 looked reasonable to me but when I did easy_install lxml, it installed version 2.3.beta1 which is not really what I want I presume.

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

(Mac os x 10.6)


回答1:


I believe the way to specify a version would be like this:

easy_install lxml==2.2.8

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

easy_install pip
pip install lxml==2.2.8

(pip has several benefits, including an uninstall command)




回答2:


From the easy_install documentation:

easy_install PackageName==1.2.3




回答3:


You should do something like this:

easy_install "lxml==2.2.8"


来源:https://stackoverflow.com/questions/3833011/install-particular-version-with-easy-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!