Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I am getting this error when trying to install ggplot in Python:

ImportError: cannot import name unpack_url

I am using the following command:

sudo pip install ggplot

This error is in a linux environment, running fedora 21.

share|improve this question
1  
possible duplicate of pip install error: cannot import name 'unpack_url' – Aereaux May 29 '15 at 21:58
    
The error is same but this is happening in a linux environment. The other post is in windows. – rgang May 29 '15 at 23:35
    
The fix mentioned there might still work. What version of python and what distro are you using? – Aereaux May 29 '15 at 23:38
    
python 2.7 on fedora 21 – rgang May 29 '15 at 23:45

Looks like you might need to update your version of pip itself.

Entertainingly, you can upgrade pip using pip, as per the docs:

On Debian and Ubuntu:

sudo apt-get install python-pip 

On Fedora:

sudo yum install python-pip
share|improve this answer

Your Answer

 
discard

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

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