pyrRoot and Anaconda on Mac os

Dear all,
I want to use Anaconda with pyRoot if it is possible. But with the anaconda environmental variables declared, when I open a python terminal and try to “import ROOT” I get the following error message:

Python 2.7.11 |Anaconda 2.4.1 (x86_64)| (default, Dec 6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: anaconda.org

import ROOT
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

is there any way to fix this ?

thanks

ps. the os is the yosemite 10.10.5

Is mix python interpreters. Recompile PyROOT for Anaconda python.

-Dom

[quote=“Dominique”]Is mix python interpreters. Recompile PyROOT for Anaconda python.

-Dom[/quote]

Thank you for your response, when you say recompile pyRoot, do you mean to compile ROOT from source again with an argument at “./configure …” for Anaconda python ? because in that part I used “–all” as an argument.

Oui. The python first in PATH is auto-selected, if structure standard. Detail control: --with-python-incdir=... Python support, location of Python.h --with-python-libdir=... Python support, location of libpython
-Dom