2

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04

I attempted sudo pip install paperclip, for example.

It gets installed to /usr/bin/lib/python2.7/dist-packages

I would want to have it installed in /usr/bin/lib/python3.4/dist-packages

Guidance would be appreciated

1
  • pip probably points to pip27 or something similar, isn't there a pip3 or pip34 command?
    – mgor
    Jul 25, 2015 at 7:31

3 Answers 3

4

Install Pip for Python3

sudo apt-get install python3-pip

And then use it to install packages into Python3

sudo pip3 install paperclip
1

Install pip for python3 by running

sudo apt install python3-pip

And then use it for installing the required package.

pip3 install package_name

This worked for me.

0

Did some additional research, and installing setuptools and running easy_install on the package solved the problem for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.