在ec2linux实例failu上安装pysftp

2024-09-29 23:19:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个awsec2linux实例,我正试图安装pysftp来编写python脚本来管理STFP服务器中的文件。在

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/

我的python版本是2.7,pip版本是8.1.2。pip和sudo pip都指向路径“/usr/local/bin/pip”

有人能帮我吗?谢谢!在


Tags: pipbuildbinusrwitherrorrecordtmp

热门问题