在我的系统上安装了libgdcm-tools (2.6.6-3)之后(通过apt install libgdcm-tools),我不再能够用Python语言导入pydicom。在运行import pydicom as pdc时,我得到以下错误
AttributeError: module 'gdcm' has no attribute 'DataElement'。
删除libgdcm-tools并不能解决问题。
我正在使用Ubuntu 18.04中的Python 3.7和pydicom 2.0.0。
发布于 2020-07-20 14:58:54
事实上,@scaramallion的评论给我指明了正确的方向。我在工作目录中没有gcdm目录,而是在我的home目录中。删除该目录解决了问题。
https://stackoverflow.com/questions/62933483
复制相似问题