安装并运行此python模块:https://github.com/andrewning/sortphotos
我的命令
python sortphotos.py -r D:\image-test\origin D:\image-test\destination
错误
FileNotFoundError:[WinError 2]系统找不到指定的文件
题:
如何在Windows环境中正确运行此模块。
在Windows上放“\\”而不是“\”,它应该工作。
python sortphotos.py -r D:\\image-test\\origin D:\\image-test\\destination
刚走这条路。要在Windows上工作,有几件事要做。他们是:
1)您必须安装Perl。我通过安装Github for windows得到它。但是,您选择获取Perl,请确保perl.exe位于PATH上。
2)你不能使用Python v2。我现在必须安装两个,然后确保python2在我的PATH上。
有点痛苦,这些依赖关系没有解释,但我得说,一旦你超越它,脚本真的很好用。
注意:我没有像Neko建议的那样用“\”替换“\”。我认为这个问题已得到解决。