The following command returned a non-zero value: ...\panda3d\thirdparty\win-python3.8-x64\python.exe" -m pip install --force-reinstall -t "built_x64\tmp\interrogate" panda3d-interrogate==0.2.0

I’m trying to build from source on windows using the instructions on the github. Unfortunately, the build terminates after only a few seconds with the following error:

C:\Users\trici\Documents\GitHub\panda3d\thirdparty\win-python3.8-x64\python.exe: No module named pip
The following command returned a non-zero value: "C:\Users\myName\Documents\GitHub\panda3d\thirdparty\win-python3.8-x64\python.exe" -m pip install --force-reinstall -t "built_x64\tmp\interrogate" panda3d-interrogate==0.2.0
Storing dependency cache.
Elapsed Time: 1 sec
Build process aborting.
Build terminated.

There were several other warnings as well, such as

WARNING: Could not locate thirdparty package mimalloc, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package opencv, excluding from build
WARNING: Could not locate manifest C:\Windows\WinSxS\Manifests\*_microsoft.windows.common-controls_6595b64144ccf1df_6.0.0.0_*.manifest.  You may need to reinstall the Visual C++ Redistributable.

Does anyone know how to fix this and build properly?

Install pip into the build of Python you are using, in this case, by running:

C:\Users\trici\Documents\GitHub\panda3d\thirdparty\win-python3.8-x64\python.exe -m ensurepip