重要错误:没有名为exi的模块

2024-06-30 16:11:05 发布

您现在位置:Python中文网/ 问答频道 /正文

我在一个python脚本中运行exiftool,但是它抛出了一个错误,我在google上搜索了这个错误,但是没有运气。在

我目前所做的: 使用以下命令在mac上安装exiftool:

brew install exiftool

安装成功,没有任何问题。在

将PATH变量设置为exiftool:

^{pr2}$

我已经通过使用echo $PATH命令确认了这一点。在

最后,当我执行sudo pip install exiftool操作时,会抛出一个错误。在

Could not find a version that satisfies the requirement pyexiftool (from versions: ) No matching distribution found for pyexiftool

我不知道,我错过了什么步骤。感谢任何帮助。在


Tags: installpippath命令echo脚本mac错误
1条回答
网友
1楼 · 发布于 2024-06-30 16:11:05

我不知道为什么不使用brew安装,但我通过此链接手动安装了它here

然后我通过在终端上运行这个命令来确保系统识别exif工具命令

exiftool -S -Make filename.jpg

然后在我的代码中我做了这样的事情:

^{pr2}$

相关问题 更多 >