rootpy 安装问题:是否在启用 PyROOT 的情况下安装了 ROOT?

rootpy installation probleme : Is ROOT installed with PyROOT enabled?

我在安装时遇到了一个大问题 rootpy。当我尝试这个命令时:

sudo pip install rootpy

我收到此错误消息:

ROOT cannot be imported. Is ROOT installed with PyROOT enabled? Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-OIZeCG/rootpy/

我已经拥有 ROOT 版本 5.34/30、python 2.7 和 python 3.5。

我确认列表中有 python:

root-config --features

你应该安装 libroot-bindings-python-dev

sudo apt-get install libroot-bindings-python-dev

在安装 rootpy 模块之前。