beautifulsoup4import urllib.requestimport unittest, time, re
from bs4parsed_html = BeautifulSoup(data, 'html.parser')
unittest.main()
文件"test.py",第6行,从b
它安装在我的计算机上,但当我在shell上执行import bs4时,它会给我以下消息: File "<pyshell#13>", line 1, in <module> File "C:\Python34\lib\bs4\__init__.py", line 48
'You are tryingto run the Pytho
我现在知道我已经安装了两个版本的python。我的程序是从"Miniconda3/python.exe“运行的。而bs4安装在"c:\python38\lib\site-packages“中。我知道这是问题的原因。我删除了Minicoda3,但VS代码在我运行程序时仍然尝试使用它。我该如何解决这个问题呢?当我运行以下代码时: >>> from bs4 import BeautifulSoup 错误: I get the e
我知道这是一个常见的问题,但我仍然不知道如何使它发挥作用。我试图在虚拟环境中使用bs4,但是我有一个错误ImportError: No module named 'bs4'pip install bs4
Requirement alreadysatisfied: bs4 in /home/****/.virtualenvs/****/lib/python3.5/dist-p