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

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

Asked on November 4, 2018 in Python.
Add Comment


  • 3 Answer(s)

    You may need to make a virtualenv of python3, then install packages of python3 when activating the virtualenv. thus your system will not be tousled

     

    This could be one thing like:

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

     

    Answered on November 4, 2018.
    Add Comment

    I came to know and fixed this without having the likes of wget or virtualenvs (assuming Ubuntu twelve.04):

    1. Install package python3-setuptools: run sudo power install python3-setuptools, this can provide you with the command easy_install3.

    2. Install pip exploitation Python 3’s setuptools: run sudo easy_install3 pip, this can provide you with the command pip-3.2 like kev’s answer.

    3. Install your PyPI packages: run sudo pip-3.2 install (installing python packages into your base system needs root, of course).
    4. …
    5. Profit!

    Answered on November 4, 2018.
    Add Comment

    On ubuntu thirteen.10/14.04, things area unit a touch totally different.

    Install

    $ sudo apt-get install python3-pip
    
    

    Install packages

    $ sudo pip3 install packagename
    
    

    NOT pip-3.3 install

    Answered on November 4, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.