How to install python3 version of package via pip on Ubuntu?

前端 未结 17 1985
粉色の甜心
粉色の甜心 2020-11-22 11:03

I have both python2.7 and python3.2 installed in Ubuntu 12.04.
The symbolic link python links to python2.7

17条回答
  •  爱一瞬间的悲伤
    2020-11-22 11:35

    If you have pip installed in both pythons, and both are in your path, just use:

    $ pip-2.7 install PACKAGENAME
    $ pip-3.2 install PACKAGENAME
    

    References:

    • http://www.pip-installer.org/docs/pip/en/0.8.3/news.html#id4
    • https://github.com/pypa/pip/issues/200

    This is a duplicate of question #2812520

提交回复
热议问题