how to run easy_install using a particular python version

前端 未结 4 1659
面向向阳花
面向向阳花 2020-12-23 21:44

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

Unnecessary info:

  1. 2.1 in /usr/bin/python
相关标签:
4条回答
  • 2020-12-23 22:05

    From the doc, besides the reported option

    python2.7 -m easy_install 
    

    there is also:

    if you install EasyInstall for both Python 2.3 and 2.4, you can use the easy_install-2.3 or easy_install-2.4 scripts to install packages for Python 2.3 or 2.4

    0 讨论(0)
  • 2020-12-23 22:11

    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.

    0 讨论(0)
  • 2020-12-23 22:22

    Just so the answer is easy to find:

    Using "Python-version" with the m-parameter and easy_install afterwards does the trick.

    Example:

    python2.7 -m easy_install https://bitbucket.org/james_taylor/bx-python/get/tip.tar.bz2
    
    0 讨论(0)
  • 2020-12-23 22:23

    Say your python version is 3.5. Then you can use the command easy_install-3.5 followed by the name of the module you are willing to download/install. See documentation here.

    0 讨论(0)
提交回复
热议问题