我想开发一个Python模块,它使用rsync通过SFTP和webdav进行文件传输。 我找到了一个名为pysync的库(最终还有其他库)。但我用的是Windows7。我用的是VisualStudio2010,但是构建失败了。。。因为“问题”。在
所以我想知道是否有人知道一个工作的librsync,或者其他适用于Windows、MacOS和Linux的东西,因为我有这个跨平台的需求。在
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>
你真的和rsync有关系吗?您正在使用SFTP传输文件,因此paramiko可能对您有用。如果你真的需要一个工作的librsync,你有几个选择。在
所有这些(除了1)都需要这个库的源代码,这只是跨平台业务的成本。如果您不喜欢没有windows版本,那么rsync可能不是适合您的工具。在
最后,根据更新here,如果有人想要windows二进制文件,他们需要与开发人员联系,他将构建它们。在
相关问题 更多 >
编程相关推荐