Python 如何解决这个问题;找不到引用“;问题
因此,当我在pycharm中导入此模块时,如下所示:Python 如何解决这个问题;找不到引用“;问题,python,python-3.x,beautifulsoup,Python,Python 3.x,Beautifulsoup,因此,当我在pycharm中导入此模块时,如下所示: from bs4 import beautifulsoup 它给了我这个错误: Cannot find reference "beautifulsoup" in "__init__.py" 我搜索了它,但我不知道如何解决它。顺便说一句,我是一个初学者,我使用python 3.9.1。首先,import语句应该是这样的: from bs4 import BeautifulSoup 假设您已经使用pi
from bs4 import beautifulsoup
它给了我这个错误:
Cannot find reference "beautifulsoup" in "__init__.py"
我搜索了它,但我不知道如何解决它。顺便说一句,我是一个初学者,我使用python 3.9.1。首先,import语句应该是这样的:
from bs4 import BeautifulSoup
假设您已经使用pip
安装了它:
pip install bs4
首先,导入语句应如下所示:
from bs4 import BeautifulSoup
假设您已经使用pip
安装了它:
pip install bs4
你安装对了吗?pip安装Beautifulsoup4您已经安装好了吗?pip安装程序4