A
A
Alexey2016-05-01 01:02:24
Django
Alexey, 2016-05-01 01:02:24

How to install lxml and pycurl in Virtualenv?

Good afternoon!
I ran into an error when trying to install lxml and pycurl in a virtual environment (Virtualenv) using python3.4. I looked through many forums but the suggested solutions did not help.
Using Ubuntu 14.04.4 LTS
The error itself looks like this (tried using pip and easy_install)

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
Command "/var/virtual/python3.4/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fyqky764/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-64zf48ta-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/virtual/python3.4/include/site/python3.4/lxml" failed with error code 1 in /tmp/pip-build-fyqky764/lxml/
(python3.4)[email protected]:/var/virtual/python3.4/parser# error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2016-05-01
@MrSen

Thanks everyone for participating, the solution turned out to be:
apt-get build-dep python-lxml

S
sim3x, 2016-05-01
@sim3x

sudo apt-get install build-essential  python-dev python3-dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question