python - rootpy安装问题: Is ROOT installed with PyROOT enabled?

标签 python pyroot

我在安装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/

相关文章:

python - 在 Python 中随机排列子列表组

python - 一个简单的 python 程序,我很难过

python - 启用 PyROOT Ubuntu 14.04

python - 将 C++ 转换为 pyroot : How to get a file object from a file in pyroot?

python - pyLCIO setMomentum : error const float* in python

python - 当用 python 标记阿拉伯文本时,我得到奇怪的结果?

python - 当我使用 SUDS 使用 web 服务时绕过 SSL

python - pyglet/avbin 错过了视频的开头和结尾

python - 导入直方图时 Pyroot AttributeError