一般有两种解决方式
1. 使用SimpleITK 替换pydicom 去强行索取pixel 信息
2. 安装gdcm,但是通常会无法安装,可能由于网络原因,在不同的网络环境下都会报如下错误:
conda install -c conda-forge gdcm
Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.
3. 通过安装pylibjpeg 及其依赖的包来解决相应的问题
libjpeg
Requirement already satisfied: pylibjpeg in /data1/huangjun/usr/package/anaconda32021/lib/python3.8/site-packages (1.3.0)
WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9802afa9a0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pylibjpeg/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9802b677f0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pylibjpeg/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9802b67f10>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /simple/pylibjpeg/
Requirement already satisfied: pylibjpeg-openjpeg in /data1/huangjun/usr/package/anaconda32021/lib/python3.8/site-packages (1.1.1)
Collecting pylibjpeg-libjpeg
Downloading pylibjpeg_libjpeg-1.2.0-cp38-cp38-manylinux2010_x86_64.whl (4.2 MB)
|████████████████████████████████| 4.2 MB 19 kB/s
Requirement already satisfied: pylibjpeg-rle in /data1/huangjun/usr/package/anaconda32021/lib/python3.8/site-packages (from pylibjpeg) (1.1.0)
Requirement already satisfied: numpy in /data1/huangjun/usr/package/anaconda32021/lib/python3.8/site-packages (from pylibjpeg) (1.20.1)
Installing collected packages: pylibjpeg-libjpeg
Successfully installed pylibjpeg-libjpeg-1.2.0
pip install -U pylibjpeg pylibjpeg-openjpeg pylibjpeg-libjpeg