【问题标题】:JPEG2000 Losses Read DICOM in Python 3.7JPEG2000 丢失在 Python 3.7 中读取 DICOM
【发布时间】:2020-03-02 08:59:14
【问题描述】:

在我的 Python 3.7 中,我想阅读 DICOM。但我面临这个通知:

NotImplementedError:此传输语法 JPEG 2000 图像压缩 (仅限无损),无法读取,因为 Pillow 缺少 jpeg 2000 解码器插件。

我已经尝试过this 解决方案,但是 anaconda 提示给了我这个:

失败

UnsatisfiableError:发现以下规格在 冲突: - gdcm -> python=3.6 -> python_abi=[build=*_cp36m] -> pypy[version='

使用“conda search --info”查看每个依赖项 包。

我该怎么办?

【问题讨论】:

  • 您使用的是什么 pydicom 版本,在什么系统上?
  • 我使用的是 Windows 10,我已将 Pydicom 更新为 1.4.2
  • 你用conda install gdcm -c conda-forgeinstall GDCM了吗?
  • 是的,我做到了。但它给了我在这个问题中提供的错误。

标签: dicom jpeg2000 pydicom gdcm


【解决方案1】:

我不是 conda 方面的专家,但在 conda forge 上使用 Python 3.7+ 时似乎没有any versions 的 GDCM,您需要坚持使用 3.6。

如果你想在 conda 中使用 Pillow 和 JPEG2k 插件,那么你应该在安装 Pillow 之前conda install -c conda-forge openjpeg(参见pydicom installation instructions)。

【讨论】:

    猜你喜欢
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-25
    • 2012-11-19
    • 2016-02-13
    相关资源
    最近更新 更多