0

My Python is 3.4, and I try to use both

 pip install numpy
 pip3 install numpy

to install the package. And I also use the "Project Interpreter" to install the numpy. The interpreter is the 3.4.1, but there always be an error:

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

What should I do to install it? Thanks a lot!

beepretty
  • 1,075
  • 3
  • 14
  • 20

5 Answers5

0

On Windows Using Python 3.4.4 i did the following though PyCharm and did not encounter any Errors:

File:Setting - Project interpreter enter image description here

Browsed for numpy and installed:

enter image description here

For MAC OS related issue:

Error installing pymssql on Mac OS X Lion

brew install numpy and/or sudo pip install numpy

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

Problem solved: Xcode 4 doesn't actually come with gcc-4.2; it comes with the new LLVM compilers.

It was just a matter of doing:

export CC=llvm-gcc-4.2

export CXX=llvm-g++-4.2

gcc-4.2 failed with exit status 1 Try the following:

Install the latest Xcode. From Xcode's Preferences menu, install the Command Line Tools (Downloads/Components tab).

Community
  • 1
  • 1
glls
  • 2,325
  • 1
  • 22
  • 39
0

If you're running OSX try installing it with brew:

brew install numpy

This guy did it and I think I have a vague recollection that I did it in the past on OSX without any issues.

wonkybadonk
  • 432
  • 4
  • 14
0

The creator of numpy co-founded a company that puts out a Python distribution etc.. which includes (no surprise) Numpy. You can download Anaconda for Python 3.x here

It won't mess up your systems python.

Back2Basics
  • 7,406
  • 2
  • 32
  • 45
0

I had the same issue while installing NUMPY package in PYCHARM. It said that it requires microsoft visual C++ 14.00 .But, all I did was reinstalled the PYCHARM in C drive and then tried to install the package.It worked.

Sabit Auti
  • 19
  • 1
0

Interestingly, you can install Scipy and Numpy both using brew

Arefe
  • 11,321
  • 18
  • 114
  • 168