我在安装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
模块之前。
关于python - rootpy安装问题: Is ROOT installed with PyROOT enabled?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46262604/