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.

rgang
  • 21
  • 2
  • 1
    possible duplicate of [pip install error: cannot import name 'unpack\_url'](http://stackoverflow.com/questions/28031277/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

1 Answers1

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
LondonRob
  • 73,083
  • 37
  • 144
  • 201