Cannot install python module: command '/usr/bin/llvm-gcc' failed with exit status 1

StackOverflow https://stackoverflow.com/questions/10947653

  •  13-06-2021
  •  | 
  •  

문제

Can someone help me with that issue, I have found many post reporting the same error but no solution worked for me. I got the same error with multiple modules.

I am setting up os X 10.7. I have Xcode 4.3.2 installed, I have download the Command Line Tools. I have installed python2.7 by following this tutorial: http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#lion.

Now I am trying to install some other modules like igraph using the following command: pip install python-igraph and I get this error:

lipo: can't open input file: /var/folders/XXX (No such file or directory)

error: command '/usr/bin/llvm-gcc' failed with exit status 1

I get the same error for multiple package :(

I have already tried to : export ARCHFLAGS="-arch i386 -arch x86_64" and to follow the things given in : http://waqasshabbir.tumblr.com/post/19073648382/llvm-gcc-4-2-exe-error-on-mac-osx-lion-when-building

Thanks for your help

도움이 되었습니까?

해결책 2

I finally managed to install igraph doing:

brew install igraph
sudo pip install python-igraph

However I still have the problem for other modules !!!! thanks for your help

다른 팁

I once had a similar issue with Linux and pip. Using "sudo pip install...." solved the problem for me. Maybe this works for OS X too.

Good luck.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top