Wants me to switch to pip install but that doesn't work

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.

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