Centos7 安装pyquery 等包的简易方法
单独下载安装模块:
sudo mkdir /home/pythonmodule
sudo wget https://www.crummy.com/software/BeautifulSoup/bs4/download/4.6/beautifulsoup4-4.6.0.tar.gz
sudo tar xvzf beautifulsoup4-4.6.0.tar.gz
cd beautifulsoup4-4.6.0
sudo python setup.py install
简易安装模块方法:
1 安装epel扩展源: sudo yum install epel-release
2 安装python-pip:sudo yum install python-pip
3 升级pip:sudo pip install --upgrade pip
4 安装bs4包:sudo pip install bs4
5 安装requests包:sudo pip install requests
6 安装pyquery包:sudo pip install pyquery
参考: