Wants me to switch to pip install but that doesn't work (original) (raw)

October 20, 2025, 11:28pm 1

I’ve made a pybind11 project that uses vcpkg for C++ dependencies and run python setup.py install and everything works perfectly.

But it says that command is unsupported by the end of the month and I need to use pip install . So I use that, and it installs, but then I get this error on runtime:

ImportError: DLL load failed while importing <LIBRARY>: The specified module could not be found.

So does anyone know what the issue is here? On Windows of course.

barry-scott (Barry Scott) October 21, 2025, 7:45am 2

My guess is that your python extension is linked against a .DLL that you do not include in the package.