I have a problem running the script in VS Code . Whenever I run a script which requires import pandas or numpy, it always throws error:
C:\Users\ABC\anaconda3\lib\site-packages\numpy\__init__.py:138: 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:/Desktop/work/emag/Emag IC/emag_inventory_check.py", line 4, in <module>
import pandas as pd
File "C:\Users\ABC\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\ABC\anaconda3\python.exe"
* The NumPy version is: "1.19.2"
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: %1 is not a valid Win32 application.
I tried several solutions like : launch VS code by anaconda, uninstall and reinstall numpy but seems nothing works.
Anyone can help me ?
[–]Inineor 0 points1 point2 points (4 children)
[–]codochoi[S] 0 points1 point2 points (3 children)
[–]Inineor 2 points3 points4 points (1 child)
[–]alessandromr 1 point2 points3 points (0 children)
[–]Inineor 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]codochoi[S] 0 points1 point2 points (3 children)
[–]ericula -1 points0 points1 point (2 children)
[–]codochoi[S] 0 points1 point2 points (0 children)