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

问题描述 投票:0回答:2

安装并运行此python模块:https://github.com/andrewning/sortphotos

  • Windows 8 + Python 3.4
  • 模块安装成功
  • 两个文件夹都存在,'origin'包含图像

我的命令

python sortphotos.py -r D:\image-test\origin D:\image-test\destination

错误

FileNotFoundError:[WinError 2]系统找不到指定的文件

题:

如何在Windows环境中正确运行此模块。

python image-processing
2个回答
1
投票

在Windows上放“\\”而不是“\”,它应该工作。

python sortphotos.py -r D:\\image-test\\origin D:\\image-test\\destination

0
投票

刚走这条路。要在Windows上工作,有几件事要做。他们是:

1)您必须安装Perl。我通过安装Github for windows得到它。但是,您选择获取Perl,请确保perl.exe位于PATH上。

2)你不能使用Python v2。我现在必须安装两个,然后确保python2在我的PATH上。

有点痛苦,这些依赖关系没有解释,但我得说,一旦你超越它,脚本真的很好用。

注意:我没有像Neko建议的那样用“\”替换“\”。我认为这个问题已得到解决。

© www.soinside.com 2019 - 2024. All rights reserved.