Google计算引擎错误安装Python PysFTP/加密软件包
我试图在我的Google Compute Engine VM中安装PySFTP,但会出现错误:
$ sudo pip install pysftp
......
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
或
c/_cffi_backend.c:2:20: fatal error: ffi.h: No such file or directory
I was trying to install pysftp in my Google Compute Engine VM, but getting the error bellow:
$ sudo pip install pysftp
......
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
or
c/_cffi_backend.c:2:20: fatal error: ffi.h: No such file or directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现这是与密码模块相关的常见问题,并且缺乏开发基本软件包的本机安装。因此,首先安装以下依赖项来解决问题:
debian/ubuntu:
fedora:
I've found out it is a common problem associated with the cryptography module, and the lack of native installation of dev base packages. So, the problem was solved by installing the following dependencies at first:
Debian/Ubuntu:
Fedora: