VS 代码导入错误原始错误是:DLL load failed while importing _multiarray_umath: The specified module could not be found

时间:2021-07-10 07:38:56

标签: python pandas visual-studio visual-studio-code

请有人帮助我! 当我尝试从 Python Anaconda 导入 numpy 或任何东西时,我遇到了这样的问题 我试图解决但不知道为什么它对我不起作用 C:\Users\User\anaconda3\lib\site-packages\numpy_init_.py:143: UserWarning: mkl-service 包导入失败,因此 Intel(R) MKL 初始化确保其正确在 Python 进程已经加载 Gnu OpenMP 的情况下,无法保证开箱即用的操作。请安装 mkl-service 包,见http://github.com/IntelPython/mkl-service 从 。导入 distributor_init 回溯(最近一次调用最后一次): 文件“d:/Project for Learn/P.py”,第 1 行,在 将熊猫导入为 pd 文件“C:\Users\User\anaconda3\lib\site-packages\pandas_init.py”,第 16 行,在 引发导入错误( 导入错误:无法导入所需的依赖项: 麻木:

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 "C:\Users\Hafiz\anaconda3\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.


PS D:\Project for Learn> conda activate base
conda : The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.
At line:1 char:1
+ conda activate base
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (conda:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
PS D:\Project for Learn> & C:/Users/User/anaconda3/python.exe "d:/Project for Learn/P.py"
C:\Users\User\anaconda3\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 "d:/Project for Learn/P.py", line 1, in <module>
    import pandas as pd
  File "C:\Users\User\anaconda3\lib\site-packages\pandas\__init__.py", line 16, in <module>
    raise ImportError(
ImportError: Unable to import required dependencies:
numpy:

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 "C:\Users\User\anaconda3\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: The specified module could not be found.

0 个答案:

没有答案