
easy_install是Python的发行包管理工具,类于linux的apt-get或者yum包管理工具,使用easy_install可以很方便的获取第三方的Python发行模块。python beautifulsoup 安装
安装方法:
1.1 Mac OS X 系统可以在终端执行以下命令:
curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python1.2 Linux系统可以执行以下命令:
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python1.3 Window系统:
Window系统可以直接下载ez_setup.py文件并运行
BeautifulSoup4是一个Python解析html或者xml的工具模块,使用这个模块做Python爬虫也是很不错的。python beautifulsoup 安装
安装方法:

2.1 Debain或Ubuntu可以通过系统软件包管理安装
$sudo apt-get install Python-bs42.2 使用easy_install或者pip安装:
$ sudo easy_install beautifulsoup4 或 $ sudo pip install beautifulsoup4
另外附上BeautifulSoup4的中文文档
安装Python的easy_install工具和BeautifulSoup模块
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-34463-1.html
其实也就等同于今后任何国家到美国去巡航
反腐倡廉支持