在我的系统上(通过apt install libgdcm-tools
)安装 libgdcm-tools (2.6.6-3) 后,我不再能够pydicom
在 Python 中导入。运行时import pydicom as pdc
出现以下错误
AttributeError: module 'gdcm' has no attribute 'DataElement'
.
删除 libgdcm-tools 并不能解决问题。
我在 Ubuntu 18.04 中使用 Python 3.7 和 pydicom 2.0.0。