I have a Linux AWS EC2 instance and am trying to install pysftp to write a python script to manage files on an STFP server.
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;
__file__='/tmp/pip-build-jFfbH5/cryptography/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install
--record /tmp/pip-gok42x-record/install-record.txt
--single-version-externally-managed
--compile" failed with error code 1 in /tmp/pip-build-jFfbH5/cryptography/
My python version is 2.7 and pip version is 8.1.2. Both peaks and sudo pip point to the path "/ usr / local / bin / pip"
Can anyone help me? Thank!
source
share