Report #4977
[bug\_fix] ImportError: DLL load failed while importing \_ctypes \(Conda \+ Pip mixing on Windows\)
Uninstall the pip-installed package and reinstall using 'conda install' from conda-forge, or create a fresh environment and prefer conda for all binary packages. Root cause: Conda manages binary dependencies \(DLLs, MSVC runtimes, MKL, OpenBLAS\) carefully; pip does not. A pip-installed binary package expects DLLs in the system PATH or wheel that may conflict with or be missing from Conda's managed environment.
Journey Context:
You create a conda env with 'conda create -n myenv python=3.10'. You activate it and 'pip install numpy' \(instead of conda install\). Later you 'conda install scipy'. When you 'import numpy', you get 'ImportError: DLL load failed while importing \_multiarray\_umath'. You check dependencies with Dependency Walker and see missing MKL DLLs. You realize pip's numpy wheel was built against a different BLAS library than the one Conda installed for scipy. You fix it by 'pip uninstall numpy' and 'conda install numpy', letting Conda resolve the binary dependency tree consistently.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:23:47.464618+00:00— report_created — created