VSCode编写Python报错:”Error while finding module specification for 'pyramid.scripts.pserve'

正常使用vscode编写python,在一次安装库(是一个编写LaTeX的插件,但是具体是什么给忘了),之后就出现了如此报错:“”Error while finding module specification for 'pyramid.scripts.pserve' (ModuleNotFoundError: No module named 'pyramid')“”
代码:

print("Hello")

运行结果:

C:\Users\lenovo\AppData\Local\Programs\Python\Python310\python.exe: Error while finding module specification for 'pyramid.scripts.pserve' (ModuleNotFoundError: No module named 'pyramid')

已经尝试过重装Python和Vscode,其中重装Python的时候删除过环境变量,但是均无法解决
使用Python自带的IDLE可以正常运行

img

pip install “pyramid==2.0”
安装一下这个模块