Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Last active February 1, 2017 11:37
  • Star 2 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
Embed
What would you like to do?
ansible pip install lxml
- name: Install lxml requirements
apt: "pkg={{ item }} state=present update_cache=yes"
sudo: yes
with_items:
- python-dev
- libxml2
- libxml2-dev
- libxslt1-dev
- lib32z1-dev
- libssl-dev
- zlib1g-dev
- name: install lxml
command: {{ path/to/virtualenv/bin/ }}pip install lxml
environment:
CFLAGS: "-O0"
@fabianvf
Copy link
Author

for ubuntu run this from inside your virtualenv

sudo apt-get install python-dev libxml2 libxml2-dev libxslt1-dev lib32z1-dev libssl-dev zlib1g-dev && CFLAGS="-O0" && pip install lxml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment