问题
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
来源:https://stackoverflow.com/questions/30539125/error-while-installing-ggplot-in-python