首页 > 解决方案 > 如何在 Ubuntu 14.04 (Mint 17) 上升级 numpy 版本

问题描述

我想在我的 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 也无济于事。

有人可以推荐做什么吗?

标签: pythonpipvirtualenvapt-get

解决方案


试试这个 ...

pip install --ignore-installed numpy

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


推荐阅读