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

前端 未结 17 2060
粉色の甜心
粉色の甜心 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:31

    Easy enough:

    sudo aptitude install python3-pip
    pip-3.2 install --user pkg
    

    If you want Python 3.3, which isn't the default as of Ubuntu 12.10:

    sudo aptitude install python3-pip python3.3
    python3.3 -m pip.runner install --user pkg
    

提交回复
热议问题