Speaktech.in

Error installing Twisted for Python

When install pip using the command

pip install Twisted gave me error

Command"/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-SQhfJz/twisted/setup.py';exec(compile(getattr(tokenize,'open', open)(__file__).read().replace('\r\n','\n'), __file__,'exec'))" install --record /tmp/pip-ItHrMV-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1in/tmp/pip-build-SQhfJz/twisted


I have fixed it by installing the following packages

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev