我需要从图像中提取 IPTC 元数据。我读过的关于 Windows 上 Python 包的大部分内容都建议使用预编译的二进制文件,但我没有看到 IPTCInfo 的二进制文件,因此我尝试了 pip3。
尝试安装时,我从 pip 收到错误消息:
C:\Users\hackr>pip3 install IPTCInfo
Collecting IPTCInfo
Downloading IPTCInfo-1.9.5-6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\hackr\AppData\Local\Temp\pip-build-v4m344a7\IPTCInfo\setup.py", line 32
print self.get_archive_files()
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\hackr\AppData\Local\Temp\pip-build-v4m344a7\IPTCInfo
所以,我试图打开它引用的最后一个临时文件,但它似乎不存在......