【发布时间】:2018-02-18 01:38:16
【问题描述】:
我一直在尝试使用 pip 在虚拟环境中安装 matplotlib。
在我尝试过的虚拟环境工作后:
$pip install matplotlib
但我得到了错误:
unable to execute 'c++' : No such file or directory
error : command 'c++' failed with exit status 1
------------------------------------------
Cleaning up
我在 ubuntu 14.04 上,matplotlib 在不使用 virtualenv 时对我来说效果很好,但我想将它放在 virtualenv 中用于我拥有的单独项目。
有什么建议吗?
【问题讨论】:
-
你试过用 apt-get 安装 gcc 吗?
-
是的,这就是为什么我让它在我的全球站点包中工作,我只是无法将它安装在 virtualenv 中
标签: matplotlib pip virtualenv