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

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

    The easiest way to install latest pip2/pip3 and corresponding packages:

    curl https://bootstrap.pypa.io/get-pip.py | python2
    pip2 install package-name    
    
    curl https://bootstrap.pypa.io/get-pip.py | python3
    pip3 install package-name
    

    Note: please run these commands as root

提交回复
热议问题