I tried installing twisted on an Ubuntu VM like this:
pip install twisted
It downloads and starts installation, but gets this 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 1 in /tmp/pip-build-SQhfJz/twisted
I'm not a real programmer, just a hobbyist, so this is way over my head. Googling it showed it needs python-dev and build-essential. I installed both of those, but installing twisted still got the same error as before.
Any thoughts?
python --versionif the version is3.x.xthen you might have to use installpython3-devand thenpip3 install twisted. FYI Twisted hasn't been fully ported to Python 3.