Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matplotlib: Nose, Tornado

Because I'm trying to install jupyter on my mac, I upgrated my pip. It showed me everything is all right, but then I noticed this:

    Requirement already up-to-date: pip in /Library/Python/2.7/site-packages/pip-10.0.0b2-py2.7.egg (10.0.0b2)
     matplotlib 1.3.1 requires nose, which is not installed.
     matplotlib 1.3.1 requires tornado, which is not installed.
     matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.

What does this mean? Will my matplotlib work normally even if I don't have numphy>=1.5?

I tried fixing it like suggested matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible but it doesn't work:

sudo -H pip install numphy

Password:
Requirement already satisfied: numphy in /Library/Python/2.7/site-packages (0.0.1)
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
like image 674
maggie_b Avatar asked Apr 08 '18 13:04

maggie_b


3 Answers

I got the same issue. You have to install the said dependencies. Which are nose, tornado, and numpy version greater than 1.5 Do the following

sudo easy_install nose
sudo easy_install tornado

As for the last part regarding numpy version greater than 1.5 you have to get the latest version of python. Refer to here

like image 194
Olalekan Sogunle Avatar answered Oct 12 '22 08:10

Olalekan Sogunle


After some searching I found a way to install the packages without checking the current version, for example, for installing matplotlib:

sudo -H pip install --ignore-installed matplotlib

I am not sure if there is a better way, but at lease it let me keep working. I hope it helps

like image 27
Snake Sanders Avatar answered Oct 12 '22 09:10

Snake Sanders


I was having the nose and the tornado issues on OSX (High Sierra) when I was attempting to install awscli. I got nose and tornado installed with pip itself:

pip install tornado nose --user

Afterwards, the awscli install went smoothly

pip install awscli --user
like image 16
Lucio Mollinedo Avatar answered Oct 12 '22 08:10

Lucio Mollinedo