openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

CMake Error at CMakeLists.txt:11 (message): NumPy headers not found #1108

Closed biyuehuang closed 4 years ago

biyuehuang commented 4 years ago

Hi, Windows 10, Openvino 2020.2. I use open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo\, refer to https://github.com/opencv/open_model_zoo/blob/master/demos/README.md#build-the-demo-applications, my command as following:

cd C:\Program Files (x86)\IntelSWTools\openvino\bin\
setupvars.bat
cd C:\Program Files (x86)\IntelSWTools\openvino_2020.2.177\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo\pose_extractor
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON "C:\Program Files (x86)\IntelSWTools\openvino_2020.2.117\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo\pose_extractor"

and get error:

-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:11 (message):
  NumPy headers not found

CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.15)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "C:/Program Files (x86)/IntelSWTools/openvino_2020.2.117/deployment_tools/open_model_zoo/demos/python_demos/human_pose_estimation_3d_demo/pose_extractor/CMakeFiles/CMakeOutput.log".
Wovchena commented 4 years ago

Try python -m pip install numpy and recompiling after.

BTW you are not supposed to run pose_extractor's cmake directly. This approach is not going to work with later releases. It is safer to run demos root cmake.

IRDonch commented 4 years ago

Closing due to inactivity.