Error while installing ggplot in python

2019-07-20 19:13发布

问题:

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.

回答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