jupyter内核似乎已死

时间:2020-05-22 19:07:59

标签: python jupyter-notebook anaconda

最初,该消息是说:

序号242不能位于动态链接库mkl_intel_thread.dll中

然后我查找了解决方案,并从System32删除了mkl动态链接库文件,再次运行,现在内核死了,没有任何警告或错误!
当我尝试导入numpy

时,内核在jupyter笔记本中死亡 我已经尝试通过conda update python更新python,也尝试过

set CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1

我昨天安装了conda,似乎无法解决问题,我的conda在环境路径中没有外部python,我需要修复jupyter笔记本才能在其中运行python代码!

    & C:/Users/waqaz/anaconda3/python.exe f:/Content/Projects/PythonTest/main.py
C:\Users\waqaz\anaconda3\lib\site-packages\numpy\__init__.py:140: 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 "C:\Users\waqaz\anaconda3\lib\site-packages\numpy\core\__init__.py", line 24, in <module>
    from . import multiarray
  File "C:\Users\waqaz\anaconda3\lib\site-packages\numpy\core\multiarray.py", line 14, in <module>
    from . import overrides
  File "C:\Users\waqaz\anaconda3\lib\site-packages\numpy\core\overrides.py", line 7, in <module>
    from numpy.core._multiarray_umath import (
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "f:/Content/Projects/PythonTest/main.py", line 1, in <module>
    import numpy as np
  File "C:\Users\waqaz\anaconda3\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "C:\Users\waqaz\anaconda3\lib\site-packages\numpy\core\__init__.py", line 54, in <module>
    raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "C:\Users\waqaz\anaconda3\python.exe",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.18.1" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: DLL load failed: The specified module could not be found.

0 个答案:

没有答案
相关问题