1.注意環境變量需要設置,每次運行前
source
可以編輯在~/.bashrc中
2.rootpy直接install
pip3 install rootpy
ROOT cannot be imported. Is ROOT installed with PyROOT enabled?
在python3中
import ROOT
dynamic module does not define module export function
使用python2沒有問題
import ROOT