Yohanes Setiawan
Yohanes Setiawan

Reputation: 81

JPEG2000 Losses Read DICOM in Python 3.7

In my Python 3.7, I want to read DICOM. But I face this notification:

NotImplementedError: this transfer syntax JPEG 2000 Image Compression (Lossless Only), can not be read because Pillow lacks the jpeg 2000 decoder plugin.

I've tried this solution, but anaconda prompt gives me this:

failed

UnsatisfiableError: The following specifications were found to be in conflict: - gdcm -> python=3.6 -> python_abi=[build=*_cp36m] -> pypy[version='<0a0'] - python=3.7

Use "conda search --info" to see the dependencies for each package.

What should I do?

Upvotes: 1

Views: 2992

Answers (1)

scaramallion
scaramallion

Reputation: 1300

I'm not an expert in conda, but it doesn't look like there are any versions of GDCM available on conda forge for Windows with Python 3.7+, you'll need to stick with 3.6.

If you want to use Pillow with the JPEG2k plugin with conda then you should conda install -c conda-forge openjpeg before installing pillow (see the pydicom installation instructions).

Upvotes: 1

Related Questions