首页>>帮助中心>>美国vps中powershell运行python报错缺少bs4模块如何解决

美国vps中powershell运行python报错缺少bs4模块如何解决

2025/9/15 13次
美国vps中powershell运行python报错缺少bs4模块

具体报错如下:
ModuleNotFoundError: No module named 'bs4'

这个报错是因为Python环境中没有安装BeautifulSoup4库(简称bs4)

解决方法:
安装BeautifulSoup4:pip install beautifulsoup4

运行命令后等待安装,安装完成后提示Successfully即可。