I'm trying to build drake from source on Ubuntu 20.04 by following instructions from here. I already checked that my system meets all the requirements, and was ale to successfully run the mandatory platform-specific setup script (and it completed saying: 'install_prereqs: success'). However, when I try to run cmake to build the python bindings, I'm confronted with the following error:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Python (missing: Python_NumPy_INCLUDE_DIRS NumPy) (found
suitable exact version "3.8.10")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindPython/Support.cmake:2214 (find_package_handle_standard_args)
/usr/share/cmake-3.16/Modules/FindPython.cmake:304 (include)
CMakeLists.txt:240 (find_package)
-- Configuring incomplete, errors occurred!
I can't seem to think of any reason why this is happening (I made sure to remove conda from my PATH variable following the note here. Any help around this issue is much appreciated!
EDIT: Want to mention that I'm trying to install Drake from this PR that includes a feature I need access to.
On another tack, you could try to temporarily work around the problem by doing (in Drake) a bazel run //:install -- /path/to/somewhere
to install Drake, and thus skipping the CMake stuff that seems to be the problem here.