general

install python3

sudo apt-get install -y python3-dev build-essential libssl-dev libff i-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libcurl4-openssl-d ev
sudo apt-get install -y python3

ref: http://blog.csdn.net/HHTide/article/details/78192314

install bs4

如果在系统中只有一个版本的python3,可以直接安装

sudo apt-get install -y python-bs4

如果系统中包含python2python3两个版本的话,使用上述指令只会安装用于python2bs4,此时可以使用以下方法解决

sudo apt-get install -y python3-pip
sudo pip3 install beautifulsoup4
# how to use
>>> from bs4 import BeautifulSoup

ref: https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html

install requests

sudo pip3 install requests
# how to use
>>> import requests

install phantomjs

  • installl nodejs first

install xpath

install pymouse & pykeyboard

install pyinstaller

Last updated

Was this helpful?