我尝试在Ubuntu虚拟机上安装twisted,如下所示:
pip安装扭曲
它下载并开始安装,但得到以下错误:
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
我不是一个真正的程序员,只是一个业余爱好者,所以这是我无法理解的。谷歌显示它需要python-dev和build-essential。这两个都是我安装的,但是安装twisted仍然会得到和以前一样的错误。
有什么想法吗?
https://stackoverflow.com/questions/31457009
复制相似问题