【from radiomics import featureextractor as FEE报错血泪史】

博客主要讲述运行from radiomics import featureextractor as FEE报错的解决办法。先卸载radiomics,安装pyradiomics。同时提醒安装anaconda选默认路径,还指出pyradiomics仅支持python3.5 - 3.7版本,可在清华镜像站下载对应安装包。
部署运行你感兴趣的模型镜像

运行from radiomics import featureextractor as FEE报错
cannot import name ‘featureextractor’ from ‘radiomics’ (D:\Soft\Anaconda3\lib\site-packages\radiomics_init_.py)
先卸载radiomics
安装pyradiomics

最重要的一点:安装anaconda不要随意改变安装路径,选择默认即可,不然就是血的教训。
pyradiomics目前只支持python3.5、3.6、3.7版本,所以要找anaconda3自带python相应版本的安装包,可以在清华大学开源软件镜像站找https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/?C=M&O=A,下载比较快
自带python3.7.4版本
以上anaconda自带python3.7.4版本

您可能感兴趣的与本文相关的镜像

Python3.8

Python3.8

Conda
Python

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

报错代码分析 A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "F:\PythonProject1\1.py", line 3, in <module> from radiomics import featureextractor, setVerbosity File "C:\Users\lenovo\anaconda3\envs\Radiomics\lib\site-packages\radiomics\__init__.py", line 286, in <module> from radiomics import _cmatrices as cMatrices # noqa: F401 AttributeError: _ARRAY_API not found Error loading C extensions Traceback (most recent call last): File "C:\Users\lenovo\anaconda3\envs\Radiomics\lib\site-packages\radiomics\__init__.py", line 286, in <module> from radiomics import _cmatrices as cMatrices # noqa: F401 ImportError: numpy.core.multiarray failed to import Traceback (most recent call last): File "F:\PythonProject1\1.py", line 3, in <module> from radiomics import featureextractor, setVerbosity File "C:\Users\lenovo\anaconda3\envs\Radiomics\lib\site-packages\radiomics\__init__.py", line 297, in <module> raise e File "C:\Users\lenovo\anaconda3\envs\Radiomics\lib\site-packages\radiomics\__init__.py", line 286, in <module> from radiomics import _cmatrices as cMatrices # noqa: F401 ImportError: numpy.core.multiarray failed to import
07-13
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值