下载python爬虫需要的库文件bs4

新建文件 requirements.txt

修改requirements.txt文件内容如下:

# need to install module

bs4
pymongo
requests
json
然后执行命令:
sudo pip install -r requirements.txt
 
原文地址:https://www.cnblogs.com/rohens-hbg/p/14445957.html