ImportError: DLL load failed when importing Numpy installed in conda virtual environment

后端 未结 6 2025
北荒
北荒 2020-12-05 02:36

In Windows, I created a Conda virtual environment with the command

conda create -n test python=2.7 pandas scipy matplotlib numpy

Once it is

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 03:27

    For the record, I had the same error here (Python 3.5 64-bit on Windows 10), and this page helped me find the solution. The problem was a conflict with libiomp5md.dll, which existed on two locations:

    • C:\Windows\System32\libiomp5md.dll
    • C:\Anaconda3\Library\bin\libiomp5md.dll

    Python was trying to use the version in System32 folder, which was an old version. I removed it (renamed) and now it uses the correct version, on Anaconda3 folder, and now I can import numpy without the import error.

提交回复
热议问题