Ubuntu安装scrapy奇葩出错
安装命令
pip install scrapy
出错信息
Command “/usr/bin/python -u -c “import setuptools, tokenize;file=’/tmp/pip-build-VxP_qQ/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install –record /tmp/pip-7nC2SE-record/install-record.txt –single-version-externally-managed –compile” failed with error code 1 in /tmp/pip-build-VxP_qQ/cryptography/
解决方案
Ubuntu or deepin
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
感谢http://stackoverflow.com/questions/22073516/failed-to-install-python-cryptography-package-with-pip-and-setup-py 第一个回答~~~
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
