安装flopy软件包时出现mkl_intel_thread.dll错误

时间:2019-10-30 05:00:18

标签: python anaconda

这是我第一次安装python软件包。

我要安装flopy package 在我的PC上,anaconda3的路径为

C:\Users\user\AppData\Local\Continuum\anaconda3

在此video之后,我键入了anaconda提示符

cd "C:\Users\user\AppData\Local\Continuum\anaconda3"
python -m pip install flopy

我得到了以下

Collecting flopy
  Using cached https://files.pythonhosted.org/packages/65/f3/7d86d8d83e6d71a05557796d303604c24c9896743be861433471d576bbb7/flopy-3.2.12.zip

出现此错误窗口

The ordinal 242 could not be located in the dynamic link library
c:\Users\user\AppData\Local\Continuum\anaconda3\Library\bin\mkl_intel_thread.dll. 

在快捷方式提示中

ERROR: Command errored out with exit status 2:
     command: 'C:\Users\user\AppData\Local\Continuum\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-p3cq3l3y\\flopy\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-p3cq3l3y\\flopy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: C:\Users\user\AppData\Local\Temp\pip-install-p3cq3l3y\flopy\
    Complete output (2 lines):
    INTEL MKL ERROR: The operating system cannot run %1. mkl_intel_thread.dll.
    Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
    ----------------------------------------
ERROR: Command errored out with exit status 2: python setup.py egg_info Check the logs for full command output.

mkl_intel_thread_dll在此路径中

where  mkl_intel_thread.dll
C:\Users\user\AppData\Local\Continuum\anaconda3\Library\bin\mkl_intel_thread.dll

任何解决此错误的建议将不胜感激

1 个答案:

答案 0 :(得分:1)

该视频很陈旧,就Conda最佳做法而言,这只是一个不好的建议。 FloPy在Anaconda Cloud的Conda Forge频道上可用,可以通过以下方式安装

conda install -c conda-forge flopy