如何在Windows中运行python模块和Wning/sortphotos

如何在Windows中运行python模块和Wning/sortphotos,python,image-processing,Python,Image Processing,已安装并运行此python模块: Windows8+Python 3.4 模块安装成功 这两个文件夹都存在,“源”包含图像 我的命令 python sortphotos.py -r D:\image-test\origin D:\image-test\destination 错误 FileNotFoundError:[WinError 2]系统找不到该文件 指定的 问题: 如何在Windows环境中正确运行此模块。在Windows上,将“\”改为“\”,它应该可以工作 python sor

已安装并运行此python模块:

  • Windows8+Python 3.4
  • 模块安装成功
  • 这两个文件夹都存在,“源”包含图像
我的命令

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位于您的路径上

2) 您不能使用PythonV2。我现在必须安装这两个,然后确保python2在我的路径上

没有解释这些依赖关系有点让人头疼,但我得说,一旦你克服了这一点,脚本真的很好用

注:我不必按照Neko的建议将“\”替换为“\”。我想这个问题已经解决了。

有两件事:

1-将源位置和目标位置用引号括起来

python sortphotos.py -r "D:\image-test\origin" "D:\image-test\destination"
2-确保您位于
sortphotos.py
所在的目录中

%Folderpath%\sortphotos-master\src

谢谢你的回复,但是这对我不起作用,错误仍然是一样的。