Problem using ROOT on visual studio code with jupyter notebook

ROOT Version: 6.28/06
Platform: Mac Ventura
Compiler: Apple clang version 15.0.0 (clang-1500.0.40.1)

I have build ROOT from source for python3.12 to use pyroot on VS code jupyter notebook.
Firstly, Pyroot works well, I could make histo and fit with gaussian function.
However, once I reboot my pc, suddenly importing ROOT module fails only on VS code jupyter notebook.
The python kernel of jupyter notebook is venv (python 3.12).
I have already checked Pyroot works with python 3.12 after rebooting.
Someone has any ideas of this problem??

Finally, I found might-be cause.
In the past, I did “pip install --user” for installing packages, although the pip version was not native to OS. I used python installed with homebrew.
Anyway, I removed all packages by the command bellow.

pip3 freeze --user | xargs pip3 uninstall -y --break-system-packages

After removing, I reboot my PC and the problem was solved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.