NumPy library ImportError: DLL load failed: The specified procedure could not be found

前端 未结 8 1898
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 06:05

I\'m learning python using Visual Studio 2017 on Windows 10. When I\'m trying to import NumPy library into my code, this error appears. I have tried uninstalling and reinsta

8条回答
  •  一向
    一向 (楼主)
    2020-12-06 06:50

    I'm relatively new here, but would like to share my experience: I had the exact same Error, trying to run a script from the console. I am using anaconda. I did

    conda update --all
    

    I can execute the script from the conda console (base(root)) now, but still not from the windows command line. There I am still getting an error:

    Traceback (most recent call last):
    

    File "C:\Users\Georg\OneDrive\Desktop\scraping.py", line 7, in import numpy as np File "C:\Users\Georg\Anaconda3\lib\site-packages\numpy__init__.py", line 140, in from . import _distributor_init File "C:\Users\Georg\Anaconda3\lib\site-packages\numpy_distributor_init.py", line 34, in from . import _mklinit ImportError: DLL load failed: Module not Found

    So if you use the anaconda environment in VS this might be of some Help. Cheers!

提交回复
热议问题