aquagremlin
aquagremlin

Reputation: 3549

why does anaconda use Apple gcc?

I installed Anaconda python 3.52.

I installed gcc with

brew install gcc

This results in gcc-6 symlinked in /usr/local/bin

My PATH has /usr/local/bin before /usr/bin

Issuing python in terminal gives

Python 3.5.2 |Anaconda 4.1.1 (x86_64)| (default, Jul  2 2016, 17:52:12)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

Why does anaconda use the 'old' gcc? Should I create this symlink in /usr/local/bin

ln -s /usr/local/Cellar/gcc/6.1.0/bin/gcc-6 /usr/local/bin/gcc

or is there a better solution?

Upvotes: 1

Views: 1461

Answers (2)

Ray Donnelly
Ray Donnelly

Reputation: 4106

That information line is not showing you what Python is going to use as a compiler, it is showing what compiler the Python interpreter itself was built with.

We build it with this compiler for maximal compatibility with old versions of OS X.

Upvotes: 5

Laser
Laser

Reputation: 6960

As you may see Anaconda is using Clang and not GCC
Seems you are working on MacOS where is Clang is default compiler.

First of all : Try to update your Xcode/Clang you are using pretty old version (based on these logs)

Also you may try to change path in your PATH

Upvotes: 0

Related Questions