如何在 Ubuntu 14.04 (Mint 17) 上升级 numpy 版本

How to upgrade numpy version on Ubuntu 14.04 (Mint 17)

我想在我的 Linux Mint 17(模仿 Ubuntu 14.04)上安装 tenosrflow python 的软件包,但它要求 numpy 比 1.8.2 更新。

当我尝试通过 pip 更新时,它显示以下内容:

Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

如果我尝试使用 apt-get purge 清除 numpy,它会回复说它还必须卸载一些重要的软件包,这让我很害怕。

virtualenv 也无济于事。

有人可以推荐做什么吗?

试试这个...

pip install --ignore-installed numpy

有关此主题的更多详细信息,请参阅此 Link