【发布时间】:2020-03-06 04:40:17
【问题描述】:
我正在尝试将 blender 构建为 python 模块 ( make bpy ),但出现此错误
Configuring Blender in "/Volumes/2Tb/Projects/Blender/build_darwin_bpy" ...
loading initial cache file /Volumes/2Tb/Projects/Blender/blender/build_files/cmake/config/bpy_module.cmake
-- Detected OS X 10.15 and Xcode 11. at /Applications/Xcode.app
-- OSX_SYSROOT_PREFIX: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
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:817 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/queen/Projects/Blender/build_darwin_bpy/CMakeFiles/CMakeOutput.log".
make: *** [all] Error 1
它似乎在错误的目录中寻找 python,因为我的是由 homebrew 安装在 /user/local/ 上的
如何更改路径?我在.bash_profile 上尝试过:export PYTHONPATH=/user/local/bin,但没有成功。
谢谢
【问题讨论】:
-
另见,搅拌机上的同样问题blender.stackexchange.com/questions/234174/…
-
另见,搅拌机上的同样问题blender.stackexchange.com/questions/234174/…