pip 安装 ROOT Python 3 Windows
pip install ROOT Python 3 Windows
我有 Python 3,Windows 10 并且想要 CERN 包 ROOT。
到目前为止,我根据其他任务所做的尝试:
作为管理员在 anaconda 提示符下 pip install ROOT 给出:
找不到满足 ROOT 要求的版本(来自版本:none)
在 cmd 上使用 python3 -m pip install :
什么都不做
有什么建议缺少什么要求吗?
您不能 pip install
ROOT,因为它在 pypi 中似乎没有条目,也不支持 python 3.x。社区支持的 rootpy
可以 pip 安装,并且确实有 python3.x 支持,但它似乎不支持 Windows,所以我会在下面添加一些注释。
根据他们的 documentation for building ROOT,您可以为此利用 Visual Studio 的 cmake
:
Visual Studio
Generate the Microsoft Visual Studio solution with cmake -G "Visual Studio 10" /path/to/source/dir
. Open the generated solution with C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe ROOT.sln
否则,他们列出了原版 cmake
的说明,这些说明包含在上面的 link 中。
注意检查他们的 supported platforms,它指向 ROOT 5 的以下内容:
- win32 for Win32 with Visual Studio >= 2008 / vc >= 9
- win32gcc for Win32 with cygwin/gcc with gcc >= 4.8
- win64gcc for Win64 with cygwin/gcc with gcc >= 4.8
还有他们的prerequisites for Windows。 ROOT 5 似乎支持 python 2.7,我还没有看到任何表明支持 python3 的信息,至少在撰写本文时是这样
他们在 docker 上确实支持 ROOT 的 alpha 版本,这可以为 运行 ROOT 包
提供不同的途径
我有 Python 3,Windows 10 并且想要 CERN 包 ROOT。 到目前为止,我根据其他任务所做的尝试:
作为管理员在 anaconda 提示符下 pip install ROOT 给出:
找不到满足 ROOT 要求的版本(来自版本:none)
在 cmd 上使用 python3 -m pip install : 什么都不做
有什么建议缺少什么要求吗?
您不能 pip install
ROOT,因为它在 pypi 中似乎没有条目,也不支持 python 3.x。社区支持的 rootpy
可以 pip 安装,并且确实有 python3.x 支持,但它似乎不支持 Windows,所以我会在下面添加一些注释。
根据他们的 documentation for building ROOT,您可以为此利用 Visual Studio 的 cmake
:
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
否则,他们列出了原版 cmake
的说明,这些说明包含在上面的 link 中。
注意检查他们的 supported platforms,它指向 ROOT 5 的以下内容:
- win32 for Win32 with Visual Studio >= 2008 / vc >= 9
- win32gcc for Win32 with cygwin/gcc with gcc >= 4.8
- win64gcc for Win64 with cygwin/gcc with gcc >= 4.8
还有他们的prerequisites for Windows。 ROOT 5 似乎支持 python 2.7,我还没有看到任何表明支持 python3 的信息,至少在撰写本文时是这样
他们在 docker 上确实支持 ROOT 的 alpha 版本,这可以为 运行 ROOT 包
提供不同的途径