Import error dll load failed when runnin streamlit run app.py

Traceback (most recent call last):
File “c:\users\danie\anaconda3\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “c:\users\danie\anaconda3\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\danie\Anaconda3\Scripts\streamlit.exe_main
.py", line 5, in
File "c:\users\danie\anaconda3\lib\site-packages\streamlit_init
.py", line 91, in
import numpy as np
File "c:\users\danie\anaconda3\lib\site-packages\numpy_init
.py", line 140, in
from . import _distributor_init
File “c:\users\danie\anaconda3\lib\site-packages\numpy_distributor_init.py”, line 34, in
from . import _mklinit
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

I have installed numpy. Any ideas or help?
Thanks guys

Hey @DaWe, welcome to Streamlit - and sorry you’re having trouble getting up and running!

This isn’t an error I’ve seen before, but it appears to be a numpy + Windows + Anaconda installation issue. (A Google search of that particular error shows a bunch of other people hitting the same issue with that setup.)

Anaconda has a discussion about the bug here: https://github.com/ContinuumIO/anaconda-issues/issues/10628

It sounds like one possible mitigation is to do pip uninstall numpy followed by conda install numpy, to replace your pip-installed numpy with a conda-installed version.

If that doesn’t work for you, can you reply with the output you get when running conda info?