Error 'No module named _paraview_modules_static' when use python

Hello everyone
I try to use paraview 5.10.0 with python in ubuntu 18.04. When I try to run my py file(contain from paraview.simple import *)
It happened an error

chengben@chengben-virtual-machine:~/quarter-qiao$ python bin2pngALL1.py
Traceback (most recent call last):
File “bin2pngALL1.py”, line 11, in
from paraview.simple import *
File “/home/chengben/paraview-5.10.0/lib/python3.9/site-packages/paraview/init.py”, line 259, in
import _paraview_modules_static
ImportError: No module named _paraview_modules_static

And environment in bashrc file is showed

export PATH=$PATH:/home/chengben/paraview-5.10.0/bin
export PYTHONPATH=$PYTHONPATH:/home/chengben/paraview-5.10.0/lib/python3.9/site-packages
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chengben/paraview-5.10.0/lib

I would appreciate if you could help me know what is my mistake and how I can solve it.

Please try with ParaView 5.12-RC1

The python on Ubuntu 18.04 seems to be Python 3.6. ParaView 5.10 ships with Python 3.9. You’ll need to match the major/minor Python version to use ParaView’s Python code from outside of pvpython.

Thank you. I follow Ben’s advise and it works.

Thanks, I just change my ParaView version to the old one to use my Python2 and it works.