| 
 
	积分13344贡献 精华在线时间 小时注册时间2012-8-7最后登录1970-1-1 
 | 
 
| 
本帖最后由 微微一笑 于 2021-11-19 15:22 编辑
x
登录后查看更多精彩内容~您需要 登录 才可以下载或查看,没有帐号?立即注册 
  
 --------------------更新-------------------------
 本人把VScode卸载,重新安装后,居然解决了问题…
 虽然不知道原因,但是解决了很开心!
 --------------------------------------------------
 由于要处理雷达资料,选择了Python中的cinrad库。
 安装Anaconda正常,可以运行Python脚本。
 但是安装了VScode后,在其终端运行Python报错,一行行查询后,发现import cinrad就有该报错。
 新手,百度查了很多帖子,也没找到原因,是安装中的哪一步有问题?,求指教。
 报错信息如下:
 >>> import cinrad
 G:\Anaconda\lib\site-packages\numpy\__init__.py:143: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under
 condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
 from . import _distributor_init
 Traceback (most recent call last):
 File "G:\Anaconda\lib\site-packages\numpy\core\__init__.py", line 22, in <module>
 from . import multiarray
 File "G:\Anaconda\lib\site-packages\numpy\core\multiarray.py", line 12, in <module>
 from . import overrides
 File "G:\Anaconda\lib\site-packages\numpy\core\overrides.py", line 7, in <module>
 from numpy.core._multiarray_umath import (
 ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块。
 
 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "G:\Anaconda\lib\site-packages\cinrad\__init__.py", line 1, in <module>
 from . import io
 File "G:\Anaconda\lib\site-packages\cinrad\io\__init__.py", line 4, in <module>
 from cinrad.io.level2 import CinradReader, StandardData
 File "G:\Anaconda\lib\site-packages\cinrad\io\level2.py", line 10, in <module>
 import numpy as np
 File "G:\Anaconda\lib\site-packages\numpy\__init__.py", line 145, in <module>
 from . import core
 File "G:\Anaconda\lib\site-packages\numpy\core\__init__.py", line 48, in <module>
 raise ImportError(msg)
 ImportError:
 
 IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
 
 Importing the numpy C-extensions failed. This error can happen for
 many reasons, often due to issues with your setup or how NumPy was
 installed.
 
 We have compiled some common reasons and troubleshooting tips at:
 
 https://numpy.org/devdocs/user/troubleshooting-importerror.html
 
 Please note and check the following:
 
 * The Python version is: Python3.8 from "G:\Anaconda\python.exe"
 * The NumPy version is: "1.20.1"
 
 and make sure that they are the versions you expect.
 Please carefully study the documentation linked above for further help.
 
 Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。
 
 
 | 
 |