首先进入setting(ctrl+alt+s) ->Project Interpreter,Project Interpreter在具体的Project下。如下图所示:

点击“+”,Python3选择bs4进行安装,Python2的选择beautifulSoup。

-
下载lxml
使用pip install x.whl(x为 whl文件名)安装
首先进入setting(ctrl+alt+s) ->Project Interpreter,Project Interpreter在具体的Project下。如下图所示:
点击“+”,Python3选择bs4进行安装,Python2的选择beautifulSoup。