Last answered:

02 Aug 2023

Posted on:

30 Jul 2023

0

any solutions pls first time see something like that

PS C:\Users\bessghaier> & C:/Users/bessghaier/anaconda3/envs/capstone/python.exe "c:/Users/bessghaier/OneDrive/Bureau/python projects/capstone_solution.py"
C:\Users\bessghaier\anaconda3\envs\capstone\Lib\site-packages\numpy\__init__.py:122: 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<br />  from . import _distributor_init
Traceback (most recent call last):
  File "c:\Users\bessghaier\OneDrive\Bureau\python projects\capstone_solution.py", line 1, in <module>
    import numpy as np  
    ^^^^^^^^^^^^^^^^^^
  File "C:\Users\bessghaier\anaconda3\envs\capstone\Lib\site-packages\numpy\__init__.py", line 443, in <module>
    import mkl
  File "C:\Users\bessghaier\anaconda3\envs\capstone\Lib\site-packages\mkl\__init__.py", line 48, in <module>
    with RTLD_for_MKL():
  File "C:\Users\bessghaier\anaconda3\envs\capstone\Lib\site-packages\mkl\__init__.py", line 33, in __enter__
    import ctypes
  File "C:\Users\bessghaier\anaconda3\envs\capstone\Lib\ctypes\__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: Le module spécifié est introuvable.

1 answers ( 0 marked as helpful)
Instructor
Posted on:

02 Aug 2023

0

Hi Alaaeddine!

Thanks for reaching out.

The ImportError indicates the DLL or the module Python is looking for isn't in a place where it can be found.

I advise you to consider updating or potentially reinstalling Python to rectify this issue.

Hope this helps.

Best,

Ivan

Submit an answer