【发布时间】:2015-12-16 17:29:09
【问题描述】:
我想在 Python 3.5 中使用 paramiko 进行 SFTP 文件传输。我知道 paramiko 依赖于 PyCrypto 并且已经阅读了 Python 3.5 中的 PyCrypto 安装问题。尽管我看到了很多关于这个主题的问题,但我还没有找到在 Python 3.5 中成功进行 SFTP 文件传输的解决方案。
我的第一个问题:是否可以使用 Python 3.5 进行 SFTP 文件传输?如果是这样,paramiko 会起作用吗?如果上述方法可行,为什么我在尝试安装 PyCrypto 时收到以下错误?
error: [WinError 2] The system canot find the file specified
**Failed building wheel for pycrypto**
我的第二个问题:如果 paramiko 不能与 Python 3.5 一起使用,是否有任何替代方案或者我必须恢复到以前的 python 版本来进行 SFTP 文件传输?
【问题讨论】:
-
如果只需要从A转移到B,
rsync? -
rsync 将无法工作,这必须通过 sftp 完成
标签: python sftp paramiko pycrypto