How to import ROOT with 64-bit python in Windows 10?

Some information about my OS:
windows 10 build 10586, x64 pro.
Anaconda, Python 2.7, 64-bit.
root_v5.34.34.win32.vc12.exe
Visual Studio 2013.

Now something is wrong when I import ROOT with my python environment.

Python 2.7.10 |Anaconda 2.3.0 (64-bit)| (default, May 28 2015, 16:44:52) [MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 3.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import sys

In [2]: a=r'C:\root_v5.34.34\bin'

In [3]: sys.path.append(a)

In [4]: import ROOT
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-b332e25ada1f> in <module>()
----> 1 import ROOT

C:\root_v5.34.34\bin\ROOT.py in <module>()
    101    sys.setdlopenflags( 0x100 | 0x2 )    # RTLD_GLOBAL | RTLD_NOW
    102
--> 103 import libPyROOT as _root
    104
    105 # reset dl flags if needed

ImportError: DLL load failed: %1 is not a valid Win32 application.

In [5]:

Can somebody help me?

Hi,

you are trying to use a 64 bits Python with a 32 bits ROOT.
PyROOT will work with a 32 bits Python.

Cheers,
Danilo

[quote=“dpiparo”]Hi,

you are trying to use a 64 bits Python with a 32 bits ROOT.
PyROOT will work with a 32 bits Python.

Cheers,
Danilo[/quote]
Thanks for your reply.

Yeah, I understand what I’m doing.
I have built the 64-bit environment of python, so I just want to know how to import ROOT in this case.

Cheers,
Chang

Hi,

presently ROOT does not support 64 bit Windows builds.
I expect progress in this direction as soon as ROOT6 will be ported to Windows.

Cheers,
Danilo

[quote=“dpiparo”]Hi,

presently ROOT does not support 64 bit Windows builds.
I expect progress in this direction as soon as ROOT6 will be ported to Windows.

Cheers,
Danilo[/quote]

Yeah, I also expect this progress finised ASAP.