CMake错误:源目录似乎不包含CMakeLists.txt

时间:2020-05-09 01:40:57

标签: cmake homebrew blender

我正在尝试通过pip install bpy安装Blender,但出现此错误:

 CMake Error at build_files/cmake/platform/platform_apple.cmake:124 (message):
      Python executable missing:
      /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
    Call Stack (most recent call first):
      CMakeLists.txt:808 (include)


    -- Configuring incomplete, errors occurred!

,我试图通过此答案https://stackoverflow.com/a/60558991/13124697来修复此错误, 通过此命令的Python_ROOT_DIR变量:

cmake -S. -Bbuild -DPython_ROOT_DIR=/usr/bin/python.

但是我得到了这个错误:

CMake Error: The source directory "/Users/haitam.f" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

有什么想法可以解决吗?

*我有 macOS ,并通过自制软件

安装了cmake

0 个答案:

没有答案