下载安装包
为了避免下载各种安装包,推荐大家通过pip的方式进行安装。
比如我需要安装beautifulsoup4,我直接在cmd中输入:Pip3 install beautifulsoup4即可
Pip3 install beautifulsoup4

检测安装状态
然后我们进入python中,引用一下模块查看安装状态,如果没有报错,就说明安装成功,如果提示找不到model就是安装没有成功。
from bs4 import BeautifulSoup

为了避免下载各种安装包,推荐大家通过pip的方式进行安装。
比如我需要安装beautifulsoup4,我直接在cmd中输入:Pip3 install beautifulsoup4即可
Pip3 install beautifulsoup4
然后我们进入python中,引用一下模块查看安装状态,如果没有报错,就说明安装成功,如果提示找不到model就是安装没有成功。
from bs4 import BeautifulSoup
本文标题:python的模块安装
本文链接:https://www.haomeiwen.com/subject/rcdfattx.html
网友评论