如何使用特定的python版本运行easy_install [英] how to run easy_install using a particular python version

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

问题描述

我有3个python版本,我想使用第二个版本来easy_install Orange.我该怎么办?

I have 3 python versions, I want to easy_install Orange using the second version. How can I do this?

不必要的信息:

  1. /usr/bin/python中的2.1
  2. /library/Frameworks/Python.framework/Versions/2.6/bin/python中的
  3. 2.6
  4. /library/Frameworks/Python.framework/Versions/3.1/bin/python中的
  5. 3.1
  1. 2.1 in /usr/bin/python
  2. 2.6 in /Library/Frameworks/Python.framework/Versions/2.6/bin/python
  3. 3.1 in /Library/Frameworks/Python.framework/Versions/3.1/bin/python

答案: 确定此处(此外,如果您使用的是Python 2.4或更高版本,则可以使用-m easy_install运行Python以运行该特定Python版本的easy_install命令"

"Also, if you're working with Python version 2.4 or higher, you can run Python with -m easy_install to run that particular Python version's easy_install command"

推荐答案

easy_install通常/始终根据Python版本安装.因此,您可以运行要在此处使用的特定Python版本/解释器的easy_install相关版本.

easy_install is usually/always installed per Python version. So you run the related version of easy_install installed for your particular Python version/interpreter you want to use here.

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

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