how to run easy_install using a particular python version

时光怂恿深爱的人放手 提交于 2019-11-29 22:21:14

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.

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

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.

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

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