RuntimeError: The following handlers are available to decode the pixel data however they are missing

一般有两种解决方式

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值