简体   繁体   English

如何在pyCharm中安装库?

[英]how to install library in pyCharm?

i am new to python(2.7) and i am using pyCharm 4.0.6 community on Ubuntu 14.04 and i am working in a school project and i am supposed to use numpy library so whenever i try to install numpy it gives me that error "collect2: error: ld returned 1 exit status" 我是python(2.7)的新手,我在Ubuntu 14.04上使用pyCharm 4.0.6社区,并且我在一个学校项目中工作,并且应该使用numpy库,因此每当我尝试安装numpy时,它都会给我该错误“ collect2 :错误:ld返回1个退出状态”

and here is a screenshot of the error 这是错误的屏幕截图

and i have tried to use virtual environment but it yields this error 而且我尝试使用虚拟环境,但是会产生此错误

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM