在Pycharm中安装numpy包时出错

时间:2016-05-20 21:21:54

标签: python pycharm

我的Python是3.4,我尝试使用两者

 pip install numpy
 pip3 install numpy

安装包。我还使用“Project Interpreter”来安装numpy。解释器是3.4.1,但始终存在错误:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

我应该怎么做才能安装它?非常感谢!

4 个答案:

答案 0 :(得分:0)

在Windows上使用Python 3.4.4我通过PyCharm执行了以下操作并且没有遇到任何错误:

文件:设置 - 项目翻译 enter image description here

浏览numpy并安装:

enter image description here

对于MAC OS相关问题:

Error installing pymssql on Mac OS X Lion

  

brew install numpy和/或sudo pip install numpy

Can't install Orange: "error: command 'clang' failed with exit status 1"

  

问题解决了:Xcode 4实际上没有附带gcc-4.2;它来了   使用新的LLVM编译器。

     
    

这只是一件事:

         

export CC = llvm-gcc-4.2

         

导出CXX = llvm-g ++ - 4.2

  

gcc-4.2 failed with exit status 1 请尝试以下方法:

  

安装最新的Xcode。从Xcode的Preferences菜单中,安装   命令行工具(下载/组件选项卡)。

答案 1 :(得分:0)

如果您正在运行OSX,请尝试使用brew安装它:

brew install numpy

This guy做到了,我认为我有一个模糊的回忆,我过去在OSX上做过没有任何问题。

答案 2 :(得分:0)

numpy的创建者共同创办了一家公司,推出了Python发行版等。其中包括(毫不奇怪)Numpy。你可以download Anaconda for Python 3.x here

它不会弄乱你的系统python。

答案 3 :(得分:0)

在PYCHARM中安装NUMPY软件包时遇到了同样的问题。它说它需要Microsoft Visual C ++ 14.00。但是,我所做的只是在C驱动器中重新安装了PYCHARM,然后尝试安装该软件包。

相关问题