Python Matplotlib:鼻子,龙卷风

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/49718346/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 19:13:04  来源:igfitidea点击:

Matplotlib: Nose, Tornado

pythonmatplotlibpipjupyter

提问by maggie_b

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:

因为我试图在我的 Mac 上安装 jupyter,所以我升级了我的 pip。它告诉我一切都很好,但后来我注意到了这一点:

    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?

这是什么意思?即使我没有 numphy>=1.5,我的 matplotlib 也能正常工作吗?

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 incompatiblebut it doesn't work:

我尝试修复它,就像建议的matplotlib 1.3.1 要求 numpy>=1.5,但是您将拥有不兼容的 numpy 1.8.0rc1,但它不起作用:

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.

回答by Olalekan Sogunle

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

我遇到了同样的问题。您必须安装上述依赖项。大于1.5的nose、tornado、numpy版本分别执行以下操作

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

至于最后一部分关于大于 1.5 的 numpy 版本,您必须获得最新版本的 python。参考这里

回答by Snake Sanders

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

经过一番搜索,我找到了一种无需检查当前版本即可安装软件包的方法,例如,用于安装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

我不确定是否有更好的方法,但至少它让我继续工作。我希望它有帮助

回答by Lucio Mollinedo

I was having the noseand the tornadoissues on OSX (High Sierra) when I was attempting to install awscli. I got noseand tornadoinstalled with pip itself:

我是有这个nosetornado当我试图安装awscli在OSX(高塞拉利昂)的问题。我得到nosetornado安装了 pip 本身:

pip install tornado nose --user

Afterwards, the awscli install went smoothly

之后,awscli 安装顺利

pip install awscli --user

回答by Krish Munot

Simply try this command if you have pip installed -

如果您安装了 pip,只需尝试此命令 -

pip3 install pandas --user