我想使用Python模块进行开发,该模块使用rsync在SFTP和webdav上进行文件传输。我找到了一个名为pysync的库(最终还找到了其他库)。但是我在Windows 7上,我使用VisualStudio 2010,但是构建失败了.因为“问题”。
因此,我想知道是否有人知道一个工作的图书同步或类似的视窗,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>发布于 2011-06-23 14:57:35
你真的和rsync联系在一起吗?您正在使用SFTP传输文件,因此帕拉米科可能适合您。如果你真的需要一个工作的图书同步,你有几个选项。
所有这些(除了1)都需要这个库的源代码,这只是跨平台业务的一种成本。如果您不喜欢窗口版本已经可用,那么rsync可能不是您的工具。
最后,根据更新这里,如果有人想要windows二进制文件,他们需要联系开发人员,他会构建它们。
https://stackoverflow.com/questions/6455809
复制相似问题