Skip to content

Instantly share code, notes, and snippets.

@fabianvf
Last active February 1, 2017 11:37
Show Gist options
  • Save fabianvf/317b7e7860bcdc754740 to your computer and use it in GitHub Desktop.
Save fabianvf/317b7e7860bcdc754740 to your computer and use it in GitHub Desktop.
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