我已经从Pycharm转向使用Sublime文本,导入/安装beautifulsoup4和请求(我可能在其他模块上也会遇到同样的问题)似乎相当复杂。我试着在我的终端上输入下面的命令来安装它们beautifulsoup4也是如此(我已经安装了pip )。当我在终端输入然后和它说,对于请求:
ImportError: No modul
i installed bs4 through terminal(pip3 install beautifulsoup4), and as i typed 'from bs4 import beaufitulsoup我通过终端(Pip3 install beautifulsoup4)安装了bs4,当我输入“from bs import beaufitulsoup4”时,它似乎可以工作,但事实证明并非如此。
我还安装了Pycharm社区版本5.0.4。我无法安装BeautifulSoup模块通过设置选项在Pycharm。我在Pycharm中得到了以下错误: Using cached BeautifulSoup-3.2.1.tar.gz File "<string>", line 1, in <module>
File "C:\Users\Kashy
Pycharm似乎接受bs4,但不能识别漂亮的汤-尽管我已经确保它是通过命令终端中的pip和miniconda安装的。我还转到了设置(在pycharm中),并且已经安装了bs4和beautifulsoup4包(最新版本),我正在使用Python3.9。AppData\Roaming\JetBrains\PyCharmCE2020.3\scratches\scratch.py", line 1, in <module>
from bs4 import beautiful