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

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

    You may want to build a virtualenv of python3, then install packages of python3 after activating the virtualenv. So your system won't be messed up :)

    This could be something like:

    virtualenv -p /usr/bin/python3 py3env
    source py3env/bin/activate
    pip install package-name
    

提交回复
热议问题