AREPL-vscode icon indicating copy to clipboard operation
AREPL-vscode copied to clipboard

AREPL gives MKL-service import error when attempting to start if python path set to conda

Open D3SL opened this issue 4 years ago • 1 comments

Windows 10, Anaconda 3.7 64bit, pretty fresh VSCode setup with the official Python plugins and this.

Attempting to start up AREPL kicks out this error. Nothing shows up in the extension host logfile at all. Given the reference to numpy I think this is related to the other issues I saw about how anaconda handles its environments.

D:\devwork\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

update: Changing my python.exe from the one in my anaconda directory to one in appdata works for some reason. The most I know how to get is that the python.exe in appdata gives this:

Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 11:52:54) [MSC v.1900 64 bit (AMD64)] on win32

while the one in my anaconda directory gives this:

Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

D3SL avatar Apr 16 '20 23:04 D3SL

I tried updating NumPy's package through conda update numpy and pip install -U numpy then now it seems to have solved the problem

anson-07 avatar May 23 '20 07:05 anson-07