首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 7和python与rsync

Windows 7和python与rsync
EN

Stack Overflow用户
提问于 2011-06-23 14:34:06
回答 1查看 2.2K关注 0票数 0

我想使用Python模块进行开发,该模块使用rsync在SFTP和webdav上进行文件传输。我找到了一个名为pysync的库(最终还找到了其他库)。但是我在Windows 7上,我使用VisualStudio 2010,但是构建失败了.因为“问题”。

因此,我想知道是否有人知道一个工作的图书同步或类似的视窗,MacOS和Linux -因为我有这个跨平台的要求。

代码语言:javascript
复制
 C:\Python27\Scripts>pip.exe install pysync
    Downloading/unpacking pysync
      Downloading pysync-2.24.tar.bz2
      Running setup.py egg_info for package pysync

        file librsync.py (for module librsync) not found
        warning: no files found matching 'librsync_wrap.*'
        warning: no files found matching 'librsync\COPYING'
        warning: no files found matching 'librsync\*.h'
        warning: no files found matching 'librsync\configure'
        warning: no files found matching 'librsync\Makefile.in'
        warning: no files found matching 'librsync\config.h.in'
        warning: no files found matching 'librsync\config.guess'
        warning: no files found matching 'librsync\config.sub'
        warning: no files found matching 'librsync\install-sh'
        warning: no files found matching 'librsync\popt\Makefile.in'
    Installing collected packages: pysync
      Running setup.py install for pysync
        file librsync.py (for module librsync) not found
        file librsync.py (for module librsync) not found
        building 'md4' extension
        C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\includ
    e -IC:\Python27\PC /Tcmd4sum/md4module.c /Fobuild\temp.win32-2.7\Release\md4sum/md4module.obj
        md4module.c
        c:\python27\include\pyconfig.h(227) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
 [...]

    ----------------------------------------
    Command C:\Python27\python.exe -c "import setuptools;__file__='C:\\Python27\\Scripts\\build\\pysync\\setup.py';exec(compile(op
    en(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record c:\users\w
    ishi\appdata\local\temp\pip-kvzhhk-record\install-record.txt failed with error code 1
    Storing complete log in C:\Users\wishi\AppData\Roaming\pip\pip.log

    C:\Python27\Scripts>
EN

回答 1

Stack Overflow用户

发布于 2011-06-23 14:57:35

你真的和rsync联系在一起吗?您正在使用SFTP传输文件,因此帕拉米科可能适合您。如果你真的需要一个工作的图书同步,你有几个选项。

  1. 搜索一个预编译版本并安装(希望你的google强大.)
  2. 安装西格温,下载源代码,在更改windows构建选项后运行make。
  3. 将源代码下载到linux框,并将其设置为交叉编译。
  4. 使用getGnuWin32获取构建库所需的所有工具,将它们放到您的路径中,然后重新运行pip。这次它应该成功地运行make命令来构建库.如果能找到源代码的话。

所有这些(除了1)都需要这个库的源代码,这只是跨平台业务的一种成本。如果您不喜欢窗口版本已经可用,那么rsync可能不是您的工具。

最后,根据更新这里,如果有人想要windows二进制文件,他们需要联系开发人员,他会构建它们。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6455809

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档