如何在 pyCharm 中安装库?

how to install library in pyCharm?

我是 python(2.7) 的新手,我在 Ubuntu 14.04 上使用 pyCharm 4.0.6 社区,我正在学校项目中工作,我应该使用 numpy 库,所以每当我尝试安装 numpy 时,它都会给我错误 "collect2: error: ld returned 1 exit status"

这里是 the error

的屏幕截图

我试过使用虚拟环境,但结果是 this error

您需要 sudo apt-get install python-dev 安装 python 头文件。