Thank you very much for your reply. I downloaded the source code from Github and installed it on the Ubuntu system. My Python environment is 3.8.10. I also installed Nest3.3 and it ran successfully. Only Nest2. X series will have this issue。
Actually, there will be no errors during the installation process. After completing the environment configuration and testing in the Python environment, I will encounter this error when import Nest Python 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import nest
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/yao/Documents/nest-simulator-2.18.0-build/lib/python2.7/site-packages/nest/__init__.py", line 26, in <module> from . import ll_api # noqa File "/home/yao/Documents/nest-simulator-2.18.0-build/lib/python2.7/site-packages/nest/ll_api.py", line 72, in <module> from . import pynestkernel as kernel # noqa ImportError: dynamic module does not define module export function (PyInit_pynestkernel)