猿问

mportError: cannot import name 'beautifulsoup'?应如何处理?

C:\Users\lenovo\PycharmProjects\untitled\venv\Scripts\python.exe C:/Users/lenovo/PycharmProjects/untitled/beautifulsoup.py

Traceback (most recent call last):

  File "C:/Users/lenovo/PycharmProjects/untitled/beautifulsoup.py", line 1, in <module>

    from bs4 import beautifulsoup

ImportError: cannot import name 'beautifulsoup'


Process finished with exit code 1


weixin_慕码人5088481
浏览 2872回答 4
4回答

战渣渣

区分大小写from bs4 import BeautifulSoup你是想这样子的吧

pardon110

安装库,重新导入
随时随地看视频慕课网APP
我要回答