Installation problem: NGsolve no working after reinstallation

I think there must be something simple and stupid, but I couldn’t figure it out.

I have NGsolve worked on my machine before. Today I wanted to try Unfitted Finite Elements and ngsxfem with NGsolve, but encouted some issues during installation. Then I uninstalled NGsolve and aimed to have one more try. However, even the NGsolve itself could not work at all. To be more specific, I used

pip3 uninstall ngsolve

to uninstall, and ran

pip3 install --upgrade ngsolve

to install it back. Then even when I try

from ngsolve import *

I would get the following error:

ImportError: cannot import name ‘solve’ from ‘ngsolve’ (~/.local/lib/python3.10/site-packages/ngsolve/ngslib.so)

I do not have much experience with python, so that I hope someone could help me on this. Thank you very much.

Some information:
OS: Ubuntu 22.04.3 LTS
Version of NGsolve: 6.2.2305