I have Python 3, Windows 10 and want to have the CERN package ROOT. What I tried so far based on other quests:
as admin on anaconda prompt pip install ROOT gives:
Could not find a version that satisfies the requirement ROOT (from versions: none)
on cmd with python3 -m pip install : does nothing
Any suggestions what requirements are missing?
You cannot pip install
ROOT, as it doesn't appear to have an entry in pypi, nor is it supported for python 3.x. The community-supported rootpy
can be pip-installed, and does have python3.x support, but it doesn't appear to be supported for Windows, so I'll add some notes below.
Per their documentation for building ROOT, you can leverage Visual Studio's cmake
for this:
Visual Studio
Generate the Microsoft Visual Studio solution with
cmake -G "Visual Studio 10" /path/to/source/dir
. Open the generated solution withC:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe ROOT.sln
Otherwise, they have instructions listed for vanilla cmake
that are contained within the link above.
Note to check their supported platforms, which point to the following for ROOT 5:
And their prerequisites for Windows. ROOT 5 appears to support python 2.7, I have not seen anything indicating python3 support, at least at the time of this writing
They do have support for an alpha version of ROOT on docker, which could provide a different avenue for running the ROOT package