运行代码出现如下important error问题
如何解决
代码应该没错
控制台关闭之后正常运行
控制台打开报错
"E:\PyCharm\Python project\venv\Scripts\python.exe" "D:/PyCharm2022/PyCharm 2022.1.3/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=58341
Traceback (most recent call last):
File "D:\PyCharm2022\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 509, in <module>
pydevconsole.start_client(host, port)
File "D:\PyCharm2022\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 437, in start_client
process_exec_queue(interpreter)
File "D:\PyCharm2022\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 249, in process_exec_queue
init_mpl_in_console(interpreter)
File "D:\PyCharm2022\PyCharm 2022.1.3\plugins\python\helpers\pydev\pydevconsole.py", line 167, in init_mpl_in_console
from _pydev_bundle.pydev_import_hook import import_hook_manager
ImportError: cannot import name 'import_hook_manager' from '_pydev_bundle.pydev_import_hook' (D:\PyCharm2022\PyCharm 2022.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py)
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['E:\\PyCharm\\Python project'])
Process finished with exit code 1
runfile('E:\\PyCharm\\Python project\\数值计算大作业\\第一题\\拉格朗日插值.py', wdir='E:\\PyCharm\\Python project\\数值计算大作业\\第一题')