Skip to content

Instantly share code, notes, and snippets.

@ficapy
Created March 6, 2015 12:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ficapy/bfbaf37fabc66cc807c9 to your computer and use it in GitHub Desktop.
pyquery依赖
wget "https://bootstrap.pypa.io/get-pip.py"
python get-pip.py
sudo apt-get build-dep -y python-lxml (#该步骤会下载一百多M的依赖包安装)
pip install pyquery
亦或者直接安装python-lxml包
如果你不需要将pyquery安装到虚拟环境中,那么直接安装python-pyquery包是最简单的~~~
用上面的办法实在是因为各种测试网上类似的
sudo apt-get install libxml2-dev libxslt1-dev python-dev zlib1g-dev #诸如此类不给力才有此下策
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment