人生苦短,我用python.

install

安装

plug

pip

使用国内源

vi ~/.pip/pip.conf

# 豆瓣
[global]
timeout = 6000
index-url = https://pypi.douban.com/simple
trusted-host = https://pypi.douban.com

升级版本

py3 -m pip install --upgrade pip

导出当前项目已经安装的扩展

pip freeze > requirements.txt

安装导出的扩展

pip install -r requirements.txt

virtualenv

https://github.com/pypa/virtualenv

install

pip3 install virtualenv
ln -s /usr/local/py3/bin/virtualenv /usr/bin/virtualenv

other

virtualenv --no-site-packages name
cd name

source name/bin/activate

deactivate

requests

https://github.com/requests/requests

install

pip3 install requests

other

http://docs.python-requests.org/zh_CN/latest/user/quickstart.html

BeautifulSoup

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

install

pip3 install beautifulsoup4 lxml