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

前端 未结 3 547
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-15 10:25

I am trying to install Orange on my Mac OS X 10.7.3 (Lion) and I keep getting an error when using either pip or building from source. First, I was getting an error that read

相关标签:
3条回答
  • 2020-12-15 10:49

    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
    

    then building Orange.

    0 讨论(0)
  • 2020-12-15 10:49

    From http://orange.biolab.si/forum/viewtopic.php?f=4&t=1568

    export CC=gcc
    export CXX=g++
    pip install orange # for example
    

    It seems more robust to not have to get into version number details if you don't have to, right? (I have not had to do this sort of thing before, so I don't know for sure.)

    Update: The pip install orange example (above) currently installs an older version of Orange (version 2.5a4 ) instead of 2.6. To get the development version, use:

    pip install -e hg+https://bitbucket.org/biolab/orange#egg=Orange
    

    I got the above command from here.

    0 讨论(0)
  • 2020-12-15 11:09

    I had to do the following to fix the error on Mac OS Catalina. You can run it in the command line and also put into your bash_profile.

    export CC=gcc
    export CXX=clang
    
    0 讨论(0)
提交回复
热议问题