安装命令
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 第一个回答~~~