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

 

参考:

CentOS7 下 python2.7.5 安装 pip 后再安装 requests包

centos 7 安装 BeautifulSoup 和requests

posted on 2017-11-17 14:40  一叶舟鸣  阅读(582)  评论(0编辑  收藏  举报

导航