首先我们安装pip,这样可以很简单的安装剩下的库
sudo apt-get install python-pip
接下来,用pip安装其他库,很简单
sudo pip install BeautifulSoup
记得,要用sudo,否则会报下面的错误
error: could not create '/usr/local/lib/python2.7/dist-packages/bs4': Permission denied
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_chen/BeautifulSoup4/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YJ3v4j-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_chen/BeautifulSoup4 Storing debug log for failure in /home/chen/.pip/pip.log
同理
sudo pip install creepy