使用easy_install安装特定版本 [英] Install particular version with easy_install

查看:136
本文介绍了使用easy_install安装特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装lxml.我看了一下网站,发现2.2.8版本对我来说是合理的,但是当我easy_install lxml时,它安装了2.3.beta1版本,这并不是我真正想要的.

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.

解决此问题的最佳方法是什么?如何强制easy_install安装特定版本?

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)

(Mac os x 10.6)

推荐答案

我相信指定版本的方式如下:

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

easy_install lxml==2.2.8

我(以及我怀疑是大多数其他Python用户)在一段时间前停止使用easy_install并开始使用pip,因此,这些解决方案是:

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有很多好处,包括uninstall命令)

(pip has several benefits, including an uninstall command)

这篇关于使用easy_install安装特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆