Python 尝试加载exiftool时出错

Python 尝试加载exiftool时出错,python,module,file-not-found,exiftool,Python,Module,File Not Found,Exiftool,我已经安装了exiftool(),并且可以导入库,但是在尝试运行测试数据以查看它是否工作时,我遇到了以下错误 ERROR: test_get_metadata (__main__.TestExifTool) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\Python36\Lib\

我已经安装了exiftool(),并且可以导入库,但是在尝试运行测试数据以查看它是否工作时,我遇到了以下错误

ERROR: test_get_metadata (__main__.TestExifTool)
----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\Program Files\Python36\Lib\site- 
packages\pyexiftool\test\test_exiftool.py", line 66, in test_get_metadata
with self.et:
  File "C:\Program Files\Python36\lib\site-packages\exiftool.py", line 191, in __enter__
self.start()
  File "C:\Program Files\Python36\lib\site-packages\exiftool.py", line 174, in start
stderr=devnull)
  File "C:\Program Files\Python36\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
  File "C:\Program Files\Python36\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
我也运行了exiftool文件夹中的安装代码,但仍然没有成功。我认为这可能是一个库问题或路径或(init.py)文件,但我已经尝试了几种方法,因此我在这里询问是否有其他人有解决方案或想法让我尝试修复它

我正在运行Python 3.6.6,并尝试了其他版本


(我可以在命令行中运行exiftool,但我已经对exiftool无法在命令行中运行的BASE64图像进行了编码,以便完全解码。)

谢谢StarGeek!问题是,我在right PATH env变量中没有exiftool命令工具(exiftool的单独应用程序)。一旦我将应用程序添加到PATH env变量中,我就让它开始工作了。在第70行的pythonexiftool代码中,它还表示您必须将它放在路径中,或者将它定向到可执行文件,这是我错过的。再次感谢

exiftool在您的计算机上的位置?它是否位于PATH env变量的一部分目录中?它位于python的C:\Python36\Lib\site包中,我是否还需要将pyexiftool添加到PATH env变量中?我还尝试将实际的exiftool.exe添加到路径中,以防我忽略了一点,即我实际上仍然需要exiftool.exe应用程序来运行python代码。