2

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.

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

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.