-
didadida262
执行完cmake .. && make -j4出现如下错误:
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:10 (find_package):
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Torch", but
CMake did not find one.Could not find a package configuration file provided by "Torch" with any of
the following names:TorchConfig.cmake torch-config.cmake
Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set
"Torch_DIR" to a directory containing one of the above files. If "Torch"
provides a separate development package or SDK, be sure it has been
installed.-- Configuring incomplete, errors occurred!
See also "/home/miles/桌面/light_human_pose_libtorch-master/build/CMakeFiles/CMakeOutput.log". -
didadida262
本人小菜一枚,安装该项目就遇到问题。就是文档中第一步,trace C++ needed model:python3 trace_model.py,执行完该命令后出现报错:
“
Traceback (most recent call last):
File "trace_model.py", line 7, in
from models.with_mobilenet import PoseEstimationWithMobileNet
ImportError: No module named 'models'
”
求解