RuntimeError: The following handlers are available to decode the pixel data however they are missing: GDCM (req. GDCM)
今天使用pydicom处理dicom文件,出现了上面的错误。
下面是我的处理方法:
1. 算是最简单的了,用SimpleITK替换pydicom处理dicom文件
2.根据错误提示,解决方法
1.conda install -c conda-forge gdcm或conda install -c conda-forge/label/cf201901 gdcm
安装gdcm,但是因为我的网不行,下载一半的时候总会连接失败,所以我采用后一种方法
2.下载gdcm包到本地,然后使用conda install xxx 安装
这里是地址gdcm,选择自己系统和python对应版本即可